example-typescript-package
example-typescript-package copied to clipboard
How to fix "Failed to parse source map from Error: ENOENT: no such file or directory, open" error
This is what im getting when I install a custom package in another repo of mine:
@namespace/client-cms: WARNING in ../../node_modules/@joshuarobs/my-framework/dist/esm/framework/utils/simplifyRanges.js
@namespace/client-cms: Module Warning (from ../../node_modules/source-map-loader/dist/cjs.js):
@namespace/client-cms: Failed to parse source map from '/Users/joshua/WebstormProjects/app-cms-monorepo/node_modules/@joshuarobs/my-framework/src/framework/utils/simplifyRanges.ts' file: Error: ENOENT: no such file or directory, open '/Users/joshua/WebstormProjects/cms-monorepo/node_modules/@joshuarobs/my-framework/src/framework/utils/simplifyRanges.ts'
Am I missing something part of the build/release process of the module generated by this package? These errors don't prevent the react app from running, but they slow down the hot reloading process and clog up the terminal
utils/simplifyRanges.ts What does this file look like?