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.

Serverless meeting demo does not build using steps outlined in README.md

See original GitHub issue

Describe 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:closed
  • Created 2 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
schuettccommented, Apr 8, 2021
aburnson@ test % git clone https://github.com/aws/amazon-chime-sdk-component-library-react.git
Cloning into 'amazon-chime-sdk-component-library-react'...
remote: Enumerating objects: 206, done.

@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

1reaction
devalevenkateshcommented, Apr 6, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

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