Serverless meeting demo does not build using steps outlined in README.md
See original GitHub issueDescribe the bug
I ran into issues deploying the serverless meeting demo using the instructions here. The actual steps I needed to take to build the demo were:
# configure AWS credentials
# install yalc globally: npm i yalc -g
git clone https://github.com/aws/amazon-chime-sdk-component-library-react.git
cd amazon-chime-sdk-component-library-react
npm install
cd demo/meeting
# manually update demo/meeting/package.json to use ^17.0.1 for @types/react, @types/react-dom, react, react-dom
npm run build
cd serverless
node ./deploy.js -r us-east-1 -b <mybucket> -s <mystack>
To Reproduce
I followed the steps here:
# configure AWS credentials
# install yalc globally: npm i yalc -g
git clone https://github.com/aws/amazon-chime-sdk-component-library-react.git
cd amazon-chime-sdk-component-library-react/demo/meeting/serverless
node ./deploy.js -r us-east-1 -b <mybucket> -s <mystack>
Expected behavior
Expected demo to deploy.
Actual behavior
internal/modules/cjs/loader.js:1033
throw err;
^
Error: Cannot find module '/Users/aburnson/Desktop/demo2/amazon-chime-sdk-component-library-react/demo/meeting/deploy.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:1030:15)
at Function.Module._load (internal/modules/cjs/loader.js:899:27)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
at internal/main/run_main_module.js:17:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
vscode.dev Visual Studio Code for the Web
Build client-side HTML, JavaScript, and CSS applications in conjunction with the browser tools for debugging. Edit your code on lower powered ...
Read more >Serverless Computing – Amazon Web Services
Serverless computing allows you to build and run applications and services without thinking about servers. Serverless applications don't require you to ...
Read more >How to embed a video into GitHub README.md?
An old support thread "Embed YouTube videos in markdown files" stated: With pages.github.io , yes, everywhere else, no. (Note: as detailed in " ......
Read more >WebAssembly Serverless Functions in AWS Lambda
In our demo, WebAssembly functions are executed with the WasmEdge runtime. ... depoly it to AWS Lambda following steps outlined in the repository...
Read more >Intro to Serverless Functions - Netlify
And since we haven't created a netlify.toml file yet, in this step, enter Y to generate one with the settings you specified. No...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@aburnson
You can use
npm install --legacy-peer-deps
to resolve the issue until npm versioning can be resolved.https://docs.npmjs.com/cli/v7/commands/npm-install#configuration-options-affecting-dependency-resolution-and-tree-design
Confirmed with @aburnson that he tried running this with NPM 7 and hence NPM tried installing peer dependencies automatically which ran into error.
https://github.blog/2021-02-02-npm-7-is-now-generally-available/#peer-dependencies
Will work on a fix soon.