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

jsx-runtime cant be found #1862

Open
nickcorbett15 opened this issue Sep 4, 2023 · 1 comment
Open

jsx-runtime cant be found #1862

nickcorbett15 opened this issue Sep 4, 2023 · 1 comment
Labels
bug Something isn't working TwinMaker Team Issues associated with the TwinMaker team

Comments

@nickcorbett15
Copy link

Describe the bug
jsx-runtime cannot be found

To Reproduce
Steps to reproduce the behavior:

  1. npx create-react-app my-app
  2. add the following component:
import { initialize } from '@iot-app-kit/source-iottwinmaker';
import { SceneViewer } from '@iot-app-kit/scene-composer';

function TwinMaker() {

    const awsCredentials = {
        accessKeyId: <yourCredentials>
        secretAccessKey: <yourCredentials
    }

    const sceneLoader = initialize(<yourScene>, {
        awsCredentials,
        awsRegion: 'us-east-1'
    }).s3SceneLoader('m01');

    return (
        <>
            <span>
                <h1>
                TwinMaker Scene
                </h1>
                <SceneViewer sceneLoader={sceneLoader}></SceneViewer>
            </span>
        </>
    )
}
export default TwinMaker;
  1. Add component to be viewed in App.tsx

Expected behavior
You should be able to view your scene

Actual Output:

ERROR in ./node_modules/react-dnd/dist/esm/core/DndProvider.mjs 28:0-51
Module not found: Error: Package path ./jsx-runtime.js is not exported from package \app-directory\node_modules\react (see exports field in \app-directory\node_modules\react\package.json)

webpack compiled with 1 error and 272 warnings

Desktop (please complete the following information):

  • OS: [e.g. iOS] Windows 10
  • Browser: Chrome
  • Version: Version 116.0.5845.111

Additional context
Add any other context about the problem here.

@nickcorbett15 nickcorbett15 added the bug Something isn't working label Sep 4, 2023
@mnischay mnischay added the TwinMaker Team Issues associated with the TwinMaker team label Sep 5, 2023
@haweston
Copy link
Contributor

haweston commented Feb 1, 2024

Created task in TwinMaker backlog

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working TwinMaker Team Issues associated with the TwinMaker team
Projects
None yet
Development

No branches or pull requests

3 participants