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

Error compiling React application #3181

Closed
itaisteinherz opened this issue Apr 28, 2019 · 3 comments
Closed

Error compiling React application #3181

itaisteinherz opened this issue Apr 28, 2019 · 3 comments

Comments

@itaisteinherz
Copy link
Contributor

itaisteinherz commented Apr 28, 2019

Describe the bug

While following the get started guide, when trying to compile the app at the end of step 4 using npm start I get the following error:

Failed to compile.

./node_modules/@aws-amplify/auth/lib/index.js
Module not found: Can't resolve '.../node_modules/babel-loader/lib/index.js' in '...'

To Reproduce

Steps to reproduce the behavior:

  1. Go through step 1-4 in the guide likes above
  2. Run npm start
  3. See error

Expected behavior

The app should get compiled without any issues. Note that I could also to npm install -D babel-loader on my end to fix this issue, but this doesn't originate from the app, but rather from the library itself.

Desktop (please complete the following information):

  • OS: macOS 10.14 (Mojave)
  • Browser: Safari (not that it's relevant here, since the issues happens in the command line)
  • Version: 12.0 (14606.1.36.1.9)
@manueliglesias
Copy link
Contributor

Thanks @itaisteinherz

This seems to be a duplicate of #2460

Let me know if it is not to re-open this issue

@itaisteinherz
Copy link
Contributor Author

@manueliglesias I don't think this is a duplicate of #2460 since the issue here doesn't seem to be related to the library's declaration files, but to it's Babel configuration (and it's package.json).

@github-actions
Copy link

This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs.

Looking for a help forum? We recommend joining the Amplify Community Discord server *-help channels or Discussions for those types of questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants