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

Warning: Failed to parse source map #66

Open
AndreyMZ opened this issue Mar 9, 2023 · 1 comment
Open

Warning: Failed to parse source map #66

AndreyMZ opened this issue Mar 9, 2023 · 1 comment

Comments

@AndreyMZ
Copy link

AndreyMZ commented Mar 9, 2023

What version of schema-typed are you using?

2.1.1

Describe the Bug

Probably this package ships ship misconfigured source map. See also facebook/create-react-app#11752.

To Reproduce

  1. Crate an app using create-react-app.
  2. Add rsuite as a dependency.
  3. Try to start or build the app, e.g. by yarn run start.

Actual Behavior

"C:\Program Files (x86)\Yarn\bin\yarn.cmd" run start
[...]

WARNING in ./node_modules/schema-typed/es/ArrayType.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'C:\project\node_modules\schema-typed\src\ArrayType.ts' file: Error: ENOENT: no such file or directory, open 'C:\project\node_modules\schema-typed\src\A
rrayType.ts'

WARNING in ./node_modules/schema-typed/es/BooleanType.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'C:\project\node_modules\schema-typed\src\BooleanType.ts' file: Error: ENOENT: no such file or directory, open 'C:\project\node_modules\schema-typed\src
\BooleanType.ts'

WARNING in ./node_modules/schema-typed/es/DateType.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'C:\project\node_modules\schema-typed\src\DateType.ts' file: Error: ENOENT: no such file or directory, open 'C:\project\node_modules\schema-typed\src\Da
teType.ts'

WARNING in ./node_modules/schema-typed/es/MixedType.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'C:\project\node_modules\schema-typed\src\MixedType.ts' file: Error: ENOENT: no such file or directory, open 'C:\project\node_modules\schema-typed\src\M
ixedType.ts'

WARNING in ./node_modules/schema-typed/es/NumberType.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'C:\project\node_modules\schema-typed\src\NumberType.ts' file: Error: ENOENT: no such file or directory, open 'C:\project\node_modules\schema-typed\src\
NumberType.ts'

WARNING in ./node_modules/schema-typed/es/ObjectType.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'C:\project\node_modules\schema-typed\src\ObjectType.ts' file: Error: ENOENT: no such file or directory, open 'C:\project\node_modules\schema-typed\src\
ObjectType.ts'

WARNING in ./node_modules/schema-typed/es/Schema.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'C:\project\node_modules\schema-typed\src\Schema.ts' file: Error: ENOENT: no such file or directory, open 'C:\project\node_modules\schema-typed\src\Sche
ma.ts'

WARNING in ./node_modules/schema-typed/es/StringType.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'C:\project\node_modules\schema-typed\src\StringType.ts' file: Error: ENOENT: no such file or directory, open 'C:\project\node_modules\schema-typed\src\
StringType.ts'

WARNING in ./node_modules/schema-typed/es/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'C:\project\node_modules\schema-typed\src\index.ts' file: Error: ENOENT: no such file or directory, open 'C:\project\node_modules\schema-typed\src\index
.ts'

WARNING in ./node_modules/schema-typed/es/locales/default.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'C:\project\node_modules\schema-typed\src\locales\default.ts' file: Error: ENOENT: no such file or directory, open 'C:\project\node_modules\schema-typed
\src\locales\default.ts'

WARNING in ./node_modules/schema-typed/es/locales/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'C:\project\node_modules\schema-typed\src\locales\index.ts' file: Error: ENOENT: no such file or directory, open 'C:\project\node_modules\schema-typed\s
rc\locales\index.ts'

WARNING in ./node_modules/schema-typed/es/utils/basicEmptyCheck.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'C:\project\node_modules\schema-typed\src\utils\basicEmptyCheck.ts' file: Error: ENOENT: no such file or directory, open 'C:\project\node_modules\schema
-typed\src\utils\basicEmptyCheck.ts'

WARNING in ./node_modules/schema-typed/es/utils/checkRequired.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'C:\project\node_modules\schema-typed\src\utils\checkRequired.ts' file: Error: ENOENT: no such file or directory, open 'C:\project\node_modules\schema-t
yped\src\utils\checkRequired.ts'

WARNING in ./node_modules/schema-typed/es/utils/createValidator.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'C:\project\node_modules\schema-typed\src\utils\createValidator.ts' file: Error: ENOENT: no such file or directory, open 'C:\project\node_modules\schema
-typed\src\utils\createValidator.ts'

WARNING in ./node_modules/schema-typed/es/utils/createValidatorAsync.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'C:\project\node_modules\schema-typed\src\utils\createValidatorAsync.ts' file: Error: ENOENT: no such file or directory, open 'C:\project\node_modules\s
chema-typed\src\utils\createValidatorAsync.ts'

WARNING in ./node_modules/schema-typed/es/utils/formatErrorMessage.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'C:\project\node_modules\schema-typed\src\utils\formatErrorMessage.ts' file: Error: ENOENT: no such file or directory, open 'C:\project\node_modules\sch
ema-typed\src\utils\formatErrorMessage.ts'

WARNING in ./node_modules/schema-typed/es/utils/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'C:\project\node_modules\schema-typed\src\utils\index.ts' file: Error: ENOENT: no such file or directory, open 'C:\project\node_modules\schema-typed\src
\utils\index.ts'

WARNING in ./node_modules/schema-typed/es/utils/isEmpty.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'C:\project\node_modules\schema-typed\src\utils\isEmpty.ts' file: Error: ENOENT: no such file or directory, open 'C:\project\node_modules\schema-typed\s
rc\utils\isEmpty.ts'

webpack compiled with 18 warnings
[...]

Expected Behavior

No warnings.

@simonguo
Copy link
Member

Fixed in [email protected]

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

2 participants