superstruct icon indicating copy to clipboard operation
superstruct copied to clipboard

[v1.0.3] Failed to parse source map from 'xxx/node_modules/superstruct/src/struct.ts' (ENOENT: no such file or directory)

Open ArturBaybulatov opened this issue 2 years ago • 2 comments

After superstruct 1.0.3 update I get multiple warnings, such as:

WARNING in ./node_modules/superstruct/dist/index.mjs
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'xxx/node_modules/superstruct/src/struct.ts' file: Error: ENOENT: no such file or directory, open 'xxx/node_modules/superstruct/src/struct.ts'

This is a Create React App project ([email protected]).

No warnings on superstruct 0.16.7.

ArturBaybulatov avatar Nov 29 '22 12:11 ArturBaybulatov

bump - still seeing this

Failed to parse source map from '/node_modules/superstruct/src/error.ts' file: Error: ENOENT: no such file or directory, open '/node_modules/superstruct/src/error.ts'

Failed to parse source map from '/node_modules/superstruct/src/struct.ts' file: Error: ENOENT: no such file or directory, open '/node_modules/superstruct/src/struct.ts'

Failed to parse source map from '/node_modules/superstruct/src/structs/coercions.ts' file: Error: ENOENT: no such file or directory, open '/node_modules/superstruct/src/structs/coercions.ts'

Failed to parse source map from '/node_modules/superstruct/src/structs/refinements.ts' file: Error: ENOENT: no such file or directory, open '/node_modules/superstruct/src/structs/refinements.ts'

Failed to parse source map from '/node_modules/superstruct/src/structs/types.ts' file: Error: ENOENT: no such file or directory, open '/node_modules/superstruct/src/structs/types.ts'

Failed to parse source map from '/node_modules/superstruct/src/structs/utilities.ts' file: Error: ENOENT: no such file or directory, open '/node_modules/superstruct/src/structs/utilities.ts'

Failed to parse source map from '/node_modules/superstruct/src/utils.ts' file: Error: ENOENT: no such file or directory, open '/node_modules/superstruct/src/utils.ts'

qapla47 avatar Dec 15 '22 22:12 qapla47

I'm now encountering this issue as well since a dependent package added superstruct as a dependency. Any chance of getting traction on this?

akrantz avatar Jan 26 '23 16:01 akrantz