-
-
Notifications
You must be signed in to change notification settings - Fork 51
Closed
Description
Hi, i just wanted to start using firebase-crashlytics and i got this error after installing and importing @nativescript/firebase-crashlytics and this is what happened after running "ns run"
ERROR in ./node_modules/source-map/lib/read-wasm.js 21:15-30
Module not found: Error: Can't resolve 'path' in '/Users/hamoboker/Projects/Tafawok/bitlims/node_modules/source-map/lib'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
- add a fallback 'resolve.fallback: { "path": require.resolve("path-browserify") }'
- install 'path-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
resolve.fallback: { "path": false }
resolve 'path' in '/Users/hamoboker/Projects/Tafawok/bitlims/node_modules/source-map/lib'
Parsed request is a module
using description file: /Users/hamoboker/Projects/Tafawok/bitlims/node_modules/source-map/package.json (relative path: ./lib)
resolve as module
looking for modules in /Users/hamoboker/Projects/Tafawok/bitlims/node_modules
single file module
using description file: /Users/hamoboker/Projects/Tafawok/bitlims/package.json (relative path: ./node_modules/path)
no extension
/Users/hamoboker/Projects/Tafawok/bitlims/node_modules/path doesn't exist
.android.vue
/Users/hamoboker/Projects/Tafawok/bitlims/node_modules/path.android.vue doesn't exist
.vue
/Users/hamoboker/Projects/Tafawok/bitlims/node_modules/path.vue doesn't exist
.android.ts
/Users/hamoboker/Projects/Tafawok/bitlims/node_modules/path.android.ts doesn't exist
.ts
/Users/hamoboker/Projects/Tafawok/bitlims/node_modules/path.ts doesn't exist
.android.js
/Users/hamoboker/Projects/Tafawok/bitlims/node_modules/path.android.js doesn't exist
.js
/Users/hamoboker/Projects/Tafawok/bitlims/node_modules/path.js doesn't exist
.android.css
/Users/hamoboker/Projects/Tafawok/bitlims/node_modules/path.android.css doesn't exist
.css
/Users/hamoboker/Projects/Tafawok/bitlims/node_modules/path.css doesn't exist
.android.scss
/Users/hamoboker/Projects/Tafawok/bitlims/node_modules/path.android.scss doesn't exist
.scss
/Users/hamoboker/Projects/Tafawok/bitlims/node_modules/path.scss doesn't exist
.android.json
/Users/hamoboker/Projects/Tafawok/bitlims/node_modules/path.android.json doesn't exist
.json
/Users/hamoboker/Projects/Tafawok/bitlims/node_modules/path.json doesn't exist
/Users/hamoboker/Projects/Tafawok/bitlims/node_modules/path doesn't exist
/Users/hamoboker/Projects/Tafawok/bitlims/node_modules/source-map/lib/node_modules doesn't exist or is not a directory
/Users/hamoboker/Projects/Tafawok/bitlims/node_modules/source-map/node_modules doesn't exist or is not a directory
/Users/hamoboker/Projects/Tafawok/bitlims/node_modules/node_modules doesn't exist or is not a directory
looking for modules in /Users/hamoboker/Projects/Tafawok/bitlims/node_modules
single file module
using description file: /Users/hamoboker/Projects/Tafawok/bitlims/package.json (relative path: ./node_modules/path)
no extension
/Users/hamoboker/Projects/Tafawok/bitlims/node_modules/path doesn't exist
.android.vue
/Users/hamoboker/Projects/Tafawok/bitlims/node_modules/path.android.vue doesn't exist
.vue
/Users/hamoboker/Projects/Tafawok/bitlims/node_modules/path.vue doesn't exist
.android.ts
/Users/hamoboker/Projects/Tafawok/bitlims/node_modules/path.android.ts doesn't exist
.ts
/Users/hamoboker/Projects/Tafawok/bitlims/node_modules/path.ts doesn't exist
.android.js
/Users/hamoboker/Projects/Tafawok/bitlims/node_modules/path.android.js doesn't exist
.js
/Users/hamoboker/Projects/Tafawok/bitlims/node_modules/path.js doesn't exist
.android.css
/Users/hamoboker/Projects/Tafawok/bitlims/node_modules/path.android.css doesn't exist
.css
/Users/hamoboker/Projects/Tafawok/bitlims/node_modules/path.css doesn't exist
.android.scss
/Users/hamoboker/Projects/Tafawok/bitlims/node_modules/path.android.scss doesn't exist
.scss
/Users/hamoboker/Projects/Tafawok/bitlims/node_modules/path.scss doesn't exist
.android.json
/Users/hamoboker/Projects/Tafawok/bitlims/node_modules/path.android.json doesn't exist
.json
/Users/hamoboker/Projects/Tafawok/bitlims/node_modules/path.json doesn't exist
/Users/hamoboker/Projects/Tafawok/bitlims/node_modules/path doesn't exist
/Users/hamoboker/Projects/Tafawok/node_modules doesn't exist or is not a directory
/Users/hamoboker/Projects/node_modules doesn't exist or is not a directory
/Users/hamoboker/node_modules doesn't exist or is not a directory
/Users/node_modules doesn't exist or is not a directory
/node_modules doesn't exist or is not a directory
@ ./node_modules/source-map/lib/source-map-consumer.js 12:17-44
@ ./node_modules/source-map/source-map.js 7:0-82
@ ./node_modules/stacktrace-gps/stacktrace-gps.js
@ ./node_modules/stacktrace-js/stacktrace.js
@ ./node_modules/@nativescript/firebase-crashlytics/index.android.js 15:0-39 78:12-32
@ ./app/services/firebase.js 4:0-43
@ ./app/app.js 10:0-28
webpack 5.68.0 compiled with 2 errors in 84 ms
This the file where i import firebase
import { firebase } from '@nativescript/firebase-core'
import '@nativescript/firebase-auth'
import '@nativescript/firebase-firestore'
import '@nativescript/firebase-crashlytics'
firebase().initializeApp()
firebase().firestore()
firebase().crashlytics()
Versions i use
{
"@nativescript/firebase-auth": "^1.0.0-alpha.38",
"@nativescript/firebase-core": "^1.0.0-alpha.38",
"@nativescript/firebase-crashlytics": "^1.0.0-alpha.38",
"@nativescript/firebase-firestore": "^1.0.0-alpha.38",
"@nativescript/core": "~8.1.5",
"@nativescript/android": "8.1.1",
"@nativescript/ios": "8.1.0",
"@nativescript/webpack": "~5.0.4",
"nativescript-vue": "~2.9.0"
}
Metadata
Metadata
Assignees
Labels
No labels