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

Console Warning stating there is no such file for after.ts or index.ts #414

Closed
seanmcquaid opened this issue Dec 30, 2021 · 1 comment · Fixed by #417
Closed

Console Warning stating there is no such file for after.ts or index.ts #414

seanmcquaid opened this issue Dec 30, 2021 · 1 comment · Fixed by #417

Comments

@seanmcquaid
Copy link

Product: React

Expectation: I should not be receiving a console warning

Actual: This is the warning that I receive :

WARNING in ./node_modules/@axe-core/react/dist/index.js Module Warning (from ./node_modules/source-map-loader/dist/cjs.js): Failed to parse source map from '/Users/sean.mcquaid/Documents/test/node_modules/@axe-core/react/index.ts' file: Error: ENOENT: no such file or directory, open '/Users/sean.mcquaid/Documents/test/node_modules/@axe-core/react/index.ts' @ ./src/index.js 12:14-40

Motivation: While this doesn't break my app necessarily, it is discouraging my team from upgrading to the new react-scripts 5.0.0 which uses Webpack 5 under the hood.

Reproduction Steps :

  1. Create a new react app with CRA that uses react-script 5.0.0.
  2. Install @axe-core/react
  3. Start the app up
  4. Notice the compiling warnings that match what I provided. I was able to reproduce this on multiple repos.

@axe-core/react: 4.3.2

- Node version: v16.13.0
- Platform:  Linux
@michael-siek
Copy link
Member

Thank you for reporting I will pass it along to the team.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants