question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Getting error no such file or directory, open '/{workdirectory}/node_modules/amazon-chime-sdk-js/src/websocketadapter/WebSocketReadyState.ts'

See original GitHub issue

What happened and what did you expect to happen?

Hello, I try to install amazon-chime-sdk-component-library-react by below command.

yarn add amazon-chime-sdk-component-library-react amazon-chime-sdk-js styled-components styled-system

and write MeetingProvider component like this.

`import * as React from ‘react’; import { createRoot } from ‘react-dom/client’; import CssBaseline from ‘@mui/material/CssBaseline’; import { ThemeProvider } from ‘@mui/material/styles’; import App from ‘./App’; import theme from ‘./theme’; import { MeetingProvider, lightTheme, } from ‘amazon-chime-sdk-component-library-react’;

const rootElement = document.getElementById(‘root’); const root = createRoot(rootElement!);

root.render( <ThemeProvider theme={theme}> <MeetingProvider> <CssBaseline /> <App /> </MeetingProvider> </ThemeProvider>, ); `

But I’m getting some errors like below.

WARNING in ./node_modules/amazon-chime-sdk-js/build/websocketadapter/WebSocketReadyState.js Module Warning (from ./node_modules/source-map-loader/dist/cjs.js): Failed to parse source map from '/{workdirectory}/node_modules/amazon-chime-sdk-js/src/websocketadapter/WebSocketReadyState.ts' file: Error: ENOENT: no such file or directory, open ''/{workdirectory}/node_modules/amazon-chime-sdk-js/src/websocketadapter/WebSocketReadyState.ts' I checked node_modules/amazon-chime-sdk-js. I couldn’t find any src directory. How to resolve this issue?

Screenshot 2022-06-23 at 09 13 33

Have you reviewed our existing documentation?

Reproduction steps

yarn add amazon-chime-sdk-component-library-react amazon-chime-sdk-js styled-components styled-system

and write MeetingProvider component like this.

`import * as React from ‘react’; import { createRoot } from ‘react-dom/client’; import CssBaseline from ‘@mui/material/CssBaseline’; import { ThemeProvider } from ‘@mui/material/styles’; import App from ‘./App’; import theme from ‘./theme’; import { MeetingProvider, lightTheme, } from ‘amazon-chime-sdk-component-library-react’;

const rootElement = document.getElementById(‘root’); const root = createRoot(rootElement!);

root.render( <ThemeProvider theme={theme}> <MeetingProvider> <CssBaseline /> <App /> </MeetingProvider> </ThemeProvider>, ); `

Amazon Chime SDK React Components Library version

3.2.0

What browsers are you seeing the problem on?

chrome

Browser version

Version 102.0.5005.115 (Official Build) (x86_64)

Device Information

MacOS Monterey version 12.4

Meeting and Attendee ID Information.

No response

Browser console logs

WARNING in ./node_modules/amazon-chime-sdk-js/build/websocketadapter/WebSocketReadyState.js Module Warning (from ./node_modules/source-map-loader/dist/cjs.js): Failed to parse source map from '/{workdirectory}/node_modules/amazon-chime-sdk-js/src/websocketadapter/WebSocketReadyState.ts' file: Error: ENOENT: no such file or directory, open ''/{workdirectory}/node_modules/amazon-chime-sdk-js/src/websocketadapter/WebSocketReadyState.ts'

Add any other context about the problem here.

No response

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
MasahiroHanawacommented, Jun 30, 2022

@michhyun1 I just add GENERATE_SOURCEMAP=false on .env. It could remove all warning. Thank you!

Question - how is this blocking you? It’s just a warning, right? Is your application failing to build? I got these warning only when I try to do same things on clean create-react-app.

Ah, sorry. I make a mistake how to make create-react-app. I just made create-react-app below command.

npx create-react-app my-app --template typescript

and set up above code

Then, it’s getting below error.

Should I set something param in MeetingProvider?

`Issues checking in progress… ERROR in src/index.tsx:16:4 TS2559: Type ‘{ children: Element; }’ has no properties in common with type ‘IntrinsicAttributes & Props’. 14 | 15 | root.render(

16 | <MeetingProvider> | ^^^^^^^^^^^^^^^ 17 | <BackApp /> 18 | </MeetingProvider>, 19 | );`

0reactions
Banninicommented, Nov 28, 2022

We are suffering from the same issue. Unable to remove the line GENERATE_SOURCEMAP=false else our builds fail. Using latest Chime and component library libs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

node.js - ENOENT, no such file or directory - Stack Overflow
I believe the previous answer is the correct answer to this problem but I was getting this error when I tried installing npm...
Read more >
Error: ENOENT: no such file or directory, open 'dist/meetingV2 ...
I tried running npm run build, npm run start but I am getting the same error. Error faced. Using index path dist/meetingV2.html internal/fs/ ......
Read more >
Error: ENOENT: no such file or directory, scandir ... - YouTube
nodejsError: ENOENT: no such file or directory, scandir '**/node_modules/node-sass/vendor' | Module build failed (from .
Read more >
no such file or directory, open package.json Node.JS - YouTube
Follow us on Instagram: https://www.instagram.com/bukeddetv/
Read more >
Resolve npm WARN saveError ENOENT no such file or ...
The ENOENT code means Error NO ENTity or Error NO ENTry, and the cause of this message is that npm can't find the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found