Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ix.siemens.com with Next JS #1385

Open
2 tasks done
manojpethe opened this issue Jul 12, 2024 · 1 comment
Open
2 tasks done

ix.siemens.com with Next JS #1385

manojpethe opened this issue Jul 12, 2024 · 1 comment
Labels
needs reproduction Bugs with the label will not be addressed until the steps to reproduce are available triage We discuss this topic in our internal weekly

Comments

@manojpethe
Copy link

Prerequisites

  • I have read the Contributing Guidelines.
  • I have not leaked any internal/restricted information like screenshots, videos, code snippets, links etc.

What happened?

I have tried to configure ix.siemens with Next JS 14.2.5 and as soon as I try to import any component, it throws following error:

D:\code\ixsiemens\next-ixsiemens\node_modules@siemens\ix\components\ix-action-card.js:1
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
^^^^^^

SyntaxError: Cannot use import statement outside a module
at internalCompileFunction (node:internal/vm:73:18)
at wrapSafe (node:internal/modules/cjs/loader:1274:20)
at Module._compile (node:internal/modules/cjs/loader:1320:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
at Module.load (node:internal/modules/cjs/loader:1197:32)
at Module._load (node:internal/modules/cjs/loader:1013:12)
at Module.require (node:internal/modules/cjs/loader:1225:19)
at mod.require (D:\code\ixsiemens\next-ixsiemens\node_modules\next\dist\server\require-hook.js:65:28)
at require (node:internal/modules/helpers:177:18)
at Object. (D:\code\ixsiemens\next-ixsiemens\node_modules@siemens\ix-react\dist\index.js:7:25)
at Module._compile (node:internal/modules/cjs/loader:1356:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
at Module.load (node:internal/modules/cjs/loader:1197:32)
at Module._load (node:internal/modules/cjs/loader:1013:12)
at Module.require (node:internal/modules/cjs/loader:1225:19) {
page: '/home'
}

Can someone provide guidance to resolve this or file this as a bug?

What type of frontend framework are you seeing the problem on?

React, Others

Which version of iX do you use?

2.4.0

Code to produce this issue.

// Create any page under pages folder and try to import any component.

import { IxContainer, IxNavItem, PageContainer, Panel, SelectOption } from '@motogarages/react-brandville';
import React from 'react'

const index = () => {
  return (
    <div>
        
        index
        
    </div>
  )
}

export default index
@manojpethe manojpethe added the triage We discuss this topic in our internal weekly label Jul 12, 2024
@danielleroux
Copy link
Collaborator

NextJS is not yet official supported by stencil you can track the process here: ionic-team/stencil#5831 ionic-team/stencil-ds-output-targets#445

After Stencil provide a solution iX will adapt it.

Regardless of the official support please provide a minimal repository to reproduce the issue your snippets are not enough.

@danielleroux danielleroux added the needs reproduction Bugs with the label will not be addressed until the steps to reproduce are available label Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs reproduction Bugs with the label will not be addressed until the steps to reproduce are available triage We discuss this topic in our internal weekly
Projects
None yet
Development

No branches or pull requests

2 participants