example-typescript-package icon indicating copy to clipboard operation
example-typescript-package copied to clipboard

How to fix "Failed to parse source map from Error: ENOENT: no such file or directory, open" error

Open joshuarobs opened this issue 3 years ago • 1 comments

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

joshuarobs avatar Feb 10 '22 13:02 joshuarobs

utils/simplifyRanges.ts What does this file look like?

doughlass avatar Nov 19 '22 18:11 doughlass