-
-
Notifications
You must be signed in to change notification settings - Fork 319
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
TS warnings while compiling with react-scripts #310
Comments
Thanks for the report! I forgot to add the Please update to |
@broofa Thank you for fast reply, now it's better :) WARNING in ./node_modules/mime/dist/types/other.js WARNING in ./node_modules/mime/dist/types/standard.js So maybe an addition the Thanks. |
Great! Now it's solved :) |
Sanity Checks
mime-db
project. (Be sure to search the issues first. Odds are good your concern has already been reported.)MRE (link)
No response
MRE (supporting details)
Actual behavior: I use mime library in my react.js application. Locally for develop I use "react-scripts start" script. It generates these warnings about "No such file or directory" from mime library:
WARNING in ./node_modules/mime/dist/src/Mime.js
Module Warning (from ./node_modules/react-scripts/node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'project_path\node_modules\mime\src\Mime.ts' file: Error: ENOENT: no such file or directory, open 'project_path\node_modules\mime\src\Mime.ts'
WARNING in ./node_modules/mime/dist/src/index.js
Module Warning (from ./node_modules/react-scripts/node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'project_path\node_modules\mime\src\index.ts' file: Error: ENOENT: no such file or directory, open 'project_path\node_modules\mime\src\index.ts'ts'
WARNING in ./node_modules/mime/dist/types/other.js
Module Warning (from ./node_modules/react-scripts/node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'project_path\node_modules\mime\types\other.ts' file: Error: ENOENT: no such file or directory, open 'project_path\node_modules\mime\types\other.ts'
WARNING in ./node_modules/mime/dist/types/standard.js
Module Warning (from ./node_modules/react-scripts/node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'project_path\node_modules\mime\types\standard.ts' file: Error: ENOENT: no such file or directory, open 'project_path\node_modules\mime\types\standard.ts'
Expected behavior: start project locally without warnings generated by mime library
Dep versions for investigating:
The text was updated successfully, but these errors were encountered: