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

Failed to parse source map for this package #39

Open
spacether opened this issue Nov 1, 2024 · 0 comments
Open

Failed to parse source map for this package #39

spacether opened this issue Nov 1, 2024 · 0 comments

Comments

@spacether
Copy link

spacether commented Nov 1, 2024

Your package includes source maps like so which include references to src folders:
https://www.npmjs.com/package/@bradgarropy/use-countdown?activeTab=code
But you do not distribute that src folder in your distribution

So npm start and npm run build throw warnings about your package like:

WARNING in ./node_modules/@bradgarropy/use-countdown/dist/countdown.js
Module Warning (from ./node_modules/react-scripts/node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/Users/justinblack/Library/CloudStorage/OneDrive-BrightMachines/Documents/repos/brc-fe/node_modules/@bradgarropy/use-countdown/src/countdown.tsx' file: Error: ENOENT: no such file or directory, open '/Users/justinblack/Library/CloudStorage/OneDrive-BrightMachines/Documents/repos/brc-fe/node_modules/@bradgarropy/use-countdown/src/countdown.tsx'

WARNING in ./node_modules/@bradgarropy/use-countdown/dist/index.js
Module Warning (from ./node_modules/react-scripts/node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/Users/x/Library/CloudStorage/OneDrive-x/Documents/repos/brc-fe/node_modules/@bradgarropy/use-countdown/src/index.tsx' file: Error: ENOENT: no such file or directory, open '/Users/x/Library/CloudStorage/OneDrive-BrightMachines/Documents/repos/brc-fe/node_modules/@bradgarropy/use-countdown/src/index.tsx'

WARNING in ./node_modules/@bradgarropy/use-countdown/dist/time.js
Module Warning (from ./node_modules/react-scripts/node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/Users/x/Library/CloudStorage/OneDrive-x/Documents/repos/brc-fe/node_modules/@bradgarropy/use-countdown/src/time.tsx' file: Error: ENOENT: no such file or directory, open '/Users/x/Library/CloudStorage/OneDrive-x/Documents/repos/brc-fe/node_modules/@bradgarropy/use-countdown/src/time.tsx'

WARNING in ./node_modules/@bradgarropy/use-countdown/dist/types.js
Module Warning (from ./node_modules/react-scripts/node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/Users/x/Library/CloudStorage/OneDrive-x/Documents/repos/brc-fe/node_modules/@bradgarropy/use-countdown/src/types.ts' file: Error: ENOENT: no such file or directory, open '/Users/x/Library/CloudStorage/OneDrive-x/Documents/repos/brc-fe/node_modules/@bradgarropy/use-countdown/src/types.ts'
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