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

Failed to parse source map #747

Closed
1 of 5 tasks
ramyareye opened this issue Feb 10, 2022 · 2 comments · Fixed by #748
Closed
1 of 5 tasks

Failed to parse source map #747

ramyareye opened this issue Feb 10, 2022 · 2 comments · Fixed by #748
Labels
bug Something isn't working

Comments

@ramyareye
Copy link

What happened?

I upgraded version and have this errors after yarn start:

WARNING in ./node_modules/@react-native-async-storage/async-storage/lib/module/AsyncStorage.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '~~/node_modules/@react-native-async-storage/async-storage/lib/module/AsyncStorage.js.map' file: Error: ENOENT: no such file or directory, open '~~/node_modules/@react-native-async-storage/async-storage/lib/module/AsyncStorage.js.map'
 @ ./node_modules/@react-native-async-storage/async-storage/lib/module/index.js 1:0-42 3:15-27
 @ ./node_modules/@/dist/index.esm.js 7:0-69 16155:37-57 16210:8-28 16246:8-28
 @ ./src/App.tsx 7:0-62 28:6-18 29:12-25
 @ ./src/index.tsx 7:0-24 11:33-36

WARNING in ./node_modules/@react-native-async-storage/async-storage/lib/module/hooks.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '~~/node_modules/@react-native-async-storage/async-storage/lib/module/hooks.js.map' file: Error: ENOENT: no such file or directory, open '~~/node_modules/@react-native-async-storage/async-storage/lib/module/hooks.js.map'
 @ ./node_modules/@react-native-async-storage/async-storage/lib/module/index.js 2:0-42 2:0-42
 @ ./node_modules/@/dist/index.esm.js 7:0-69 16155:37-57 16210:8-28 16246:8-28
 @ ./src/App.tsx 7:0-62 28:6-18 29:12-25
 @ ./src/index.tsx 7:0-24 11:33-36

WARNING in ./node_modules/@react-native-async-storage/async-storage/lib/module/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '~~/node_modules/@react-native-async-storage/async-storage/lib/module/index.js.map' file: Error: ENOENT: no such file or directory, open '~~/node_modules/@react-native-async-storage/async-storage/lib/module/index.js.map'
 @ ./node_modules/@/dist/index.esm.js 7:0-69 16155:37-57 16210:8-28 16246:8-28

Version

v1.16.0

What platforms are you seeing this issue on?

  • Android
  • iOS
  • macOS
  • Windows
  • web

System Information

global tsc 4.4.2 and 4.5.5
react-scripts 5.0.0 with typescript 4.4.2
was working with "@react-native-async-storage/async-storage" "^1.15.5"

Steps to Reproduce

yarn create react-app cratas --template typescript
yarn add @react-native-async-storage/async-storage
https://react-native-async-storage.github.io/async-storage/docs/usage
yarn start

@ramyareye ramyareye added the bug Something isn't working label Feb 10, 2022
@tido64
Copy link
Member

tido64 commented Feb 10, 2022

Hi @ramyareye, in an attempt to reduce the number of files we publish, the source map files got removed. I didn't realize that source-map-loader are able to pick them up. Sorry about that.

@krizzu
Copy link
Member

krizzu commented Feb 10, 2022

🎉 This issue has been resolved in version 1.16.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants