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

Runtime warning #3

Open
karlkras opened this issue Jan 25, 2022 · 1 comment
Open

Runtime warning #3

karlkras opened this issue Jan 25, 2022 · 1 comment

Comments

@karlkras
Copy link

After having this problem with my own package after falling your tutorial, I checked via a fork of your repo if it was an issue with the original too. Apparently it is... while the component seems to be functioning as expected, here's what it does at startup:

$ yarn start
yarn run v1.22.17
warning ..\..\package.json: No license field
$ react-scripts start
(node:31496) [DEP_WEBPACK_DEV_SERVER_ON_AFTER_SETUP_MIDDLEWARE] DeprecationWarning: 'onAfterSetupMiddleware' option is deprecated. Please use the 'setupMiddlewares' option.
(Use `node --trace-deprecation ...` to show where the warning was created)
(node:31496) [DEP_WEBPACK_DEV_SERVER_ON_BEFORE_SETUP_MIDDLEWARE] DeprecationWarning: 'onBeforeSetupMiddleware' option is deprecated. Please use the 'setupMiddlewares' option.
Starting the development server...

Compiled with warnings.

Failed to parse source map from 'C:\Users\kkrasnowsky\work\test-lib-app\node_modules\@languagelinetranslation\template-react-component-library\src\components\Button\Button.tsx' file: Error: ENOENT: no such file or directory, open 'C:\Users\kkrasnowsky\work\test-lib-app\node_modules\@languagelinetranslation\template-react-component-library\src\components\Button\Button.tsx'

Search for the keywords to learn more about each warning.
To ignore, add // eslint-disable-next-line to the line before.

assets by path static/ 1.58 MiB
  asset static/js/bundle.js 1.57 MiB [emitted] (name: main) 1 related asset
  asset static/js/node_modules_web-vitals_dist_web-vitals_js.chunk.js 6.93 KiB [emitted] 1 related asset
  asset static/media/logo.6ce24c58023cc2f8fd88fe9d219db6c6.svg 2.57 KiB [emitted] (auxiliary name: main)
asset index.html 1.67 KiB [emitted]
asset asset-manifest.json 546 bytes [emitted]
cached modules 1.46 MiB (javascript) 31.3 KiB (runtime) [cached] 123 modules

WARNING in ./node_modules/@languagelinetranslation/template-react-component-library/dist/esm/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'C:\Users\kkrasnowsky\work\test-lib-app\node_modules\@languagelinetranslation\template-react-component-library\src\components\Button\Button.tsx' file: Error: ENOENT: no such file or directory, open 'C:\Users\kkrasnowsky\work\test-lib-app\node_modules\@languagelinetranslation\template-react-component-library\src\components\Button\Button.tsx'
 @ ./src/App.tsx 5:0-83 45:37-43
 @ ./src/index.tsx 7:0-24 11:33-36

1 warning has detailed information that is not shown.
Use 'stats.errorDetails: true' resp. '--stats-error-details' to show it.

webpack 5.67.0 compiled with 1 warning in 8463 ms
Files successfully emitted, waiting for typecheck results...
Issues checking in progress...
No issues found.

any ideas on how to fix this?

@karlkras
Copy link
Author

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

No branches or pull requests

1 participant