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

Author: ArturBaybulatovCreated Nov 29, 2022Updated Feb 5, 2026

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.

Source: ianstormtaylor/superstruct