Comments (7)
Check #9 , I'm having the same issue and going to try that resoultion with webpack over there.
from firebase.
fixed with #58
from firebase.
Hello, @triniwiz
Should the current package (1.2.2) include this fix? I have the same issue and noticed that the nativescript.webpack.js file is not included in the npm package.
from firebase.
Is this still an issue? I'm wanting to add crashlytics to get to the bottom of my issue #87 but am getting the same error on ns run and ns debug android (fresh install of everything here in an attempt to eliminate conflicts in original problem)
ERROR in ./node_modules/source-map/lib/read-wasm.js 21:15-30
Module not found: Error: Can't resolve 'path' in '/home/adam/Dropbox/Development/NativeScript/HSNSTestApp/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 '/home/adam/Dropbox/Development/NativeScript/HSNSTestApp/node_modules/source-map/lib'
Parsed request is a module
using description file: /home/adam/Dropbox/Development/NativeScript/HSNSTestApp/node_modules/source-map/package.json (relative path: ./lib)
resolve as module
looking for modules in /home/adam/Dropbox/Development/NativeScript/HSNSTestApp/node_modules
single file module
using description file: /home/adam/Dropbox/Development/NativeScript/HSNSTestApp/package.json (relative path: ./node_modules/path)
no extension
/home/adam/Dropbox/Development/NativeScript/HSNSTestApp/node_modules/path doesn't exist
.android.ts
/home/adam/Dropbox/Development/NativeScript/HSNSTestApp/node_modules/path.android.ts doesn't exist
.ts
/home/adam/Dropbox/Development/NativeScript/HSNSTestApp/node_modules/path.ts doesn't exist
.android.js
/home/adam/Dropbox/Development/NativeScript/HSNSTestApp/node_modules/path.android.js doesn't exist
.js
/home/adam/Dropbox/Development/NativeScript/HSNSTestApp/node_modules/path.js doesn't exist
.android.mjs
/home/adam/Dropbox/Development/NativeScript/HSNSTestApp/node_modules/path.android.mjs doesn't exist
.mjs
/home/adam/Dropbox/Development/NativeScript/HSNSTestApp/node_modules/path.mjs doesn't exist
.android.css
/home/adam/Dropbox/Development/NativeScript/HSNSTestApp/node_modules/path.android.css doesn't exist
.css
/home/adam/Dropbox/Development/NativeScript/HSNSTestApp/node_modules/path.css doesn't exist
.android.scss
/home/adam/Dropbox/Development/NativeScript/HSNSTestApp/node_modules/path.android.scss doesn't exist
.scss
/home/adam/Dropbox/Development/NativeScript/HSNSTestApp/node_modules/path.scss doesn't exist
.android.json
/home/adam/Dropbox/Development/NativeScript/HSNSTestApp/node_modules/path.android.json doesn't exist
.json
/home/adam/Dropbox/Development/NativeScript/HSNSTestApp/node_modules/path.json doesn't exist
/home/adam/Dropbox/Development/NativeScript/HSNSTestApp/node_modules/path doesn't exist
/home/adam/Dropbox/Development/NativeScript/HSNSTestApp/node_modules/source-map/lib/node_modules doesn't exist or is not a directory
/home/adam/Dropbox/Development/NativeScript/HSNSTestApp/node_modules/source-map/node_modules doesn't exist or is not a directory
/home/adam/Dropbox/Development/NativeScript/HSNSTestApp/node_modules/node_modules doesn't exist or is not a directory
looking for modules in /home/adam/Dropbox/Development/NativeScript/HSNSTestApp/node_modules
single file module
using description file: /home/adam/Dropbox/Development/NativeScript/HSNSTestApp/package.json (relative path: ./node_modules/path)
no extension
/home/adam/Dropbox/Development/NativeScript/HSNSTestApp/node_modules/path doesn't exist
.android.ts
/home/adam/Dropbox/Development/NativeScript/HSNSTestApp/node_modules/path.android.ts doesn't exist
.ts
/home/adam/Dropbox/Development/NativeScript/HSNSTestApp/node_modules/path.ts doesn't exist
.android.js
/home/adam/Dropbox/Development/NativeScript/HSNSTestApp/node_modules/path.android.js doesn't exist
.js
/home/adam/Dropbox/Development/NativeScript/HSNSTestApp/node_modules/path.js doesn't exist
.android.mjs
/home/adam/Dropbox/Development/NativeScript/HSNSTestApp/node_modules/path.android.mjs doesn't exist
.mjs
/home/adam/Dropbox/Development/NativeScript/HSNSTestApp/node_modules/path.mjs doesn't exist
.android.css
/home/adam/Dropbox/Development/NativeScript/HSNSTestApp/node_modules/path.android.css doesn't exist
.css
/home/adam/Dropbox/Development/NativeScript/HSNSTestApp/node_modules/path.css doesn't exist
.android.scss
/home/adam/Dropbox/Development/NativeScript/HSNSTestApp/node_modules/path.android.scss doesn't exist
.scss
/home/adam/Dropbox/Development/NativeScript/HSNSTestApp/node_modules/path.scss doesn't exist
.android.json
/home/adam/Dropbox/Development/NativeScript/HSNSTestApp/node_modules/path.android.json doesn't exist
.json
/home/adam/Dropbox/Development/NativeScript/HSNSTestApp/node_modules/path.json doesn't exist
/home/adam/Dropbox/Development/NativeScript/HSNSTestApp/node_modules/path doesn't exist
/home/adam/Dropbox/Development/NativeScript/node_modules doesn't exist or is not a directory
/home/adam/Dropbox/Development/node_modules doesn't exist or is not a directory
/home/adam/Dropbox/node_modules doesn't exist or is not a directory
/home/adam/node_modules doesn't exist or is not a directory
/home/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 80:12-32
@ ./app/app.ts 11:0-44
webpack 5.72.1 compiled with 2 errors in 181 ms
from firebase.
Thanks a lot it solved my problem
from firebase.
@triniwiz I think you can close this now.
from firebase.
@PackagedCat Thanks I'll release a patch with the file
from firebase.
Related Issues (20)
- Android `showNotificationsWhenInForeground` not working
- Didn't find class "org.nativescript.plugins.firebase.MyFirebaseMessagingService" HOT 1
- Can't build on new xcode 14.3 HOT 5
- Can't build with xcode 14.2 no such module FirebaseMessaging HOT 7
- App crashes on (iOS) device after installing from TestFlight HOT 8
- Nativescript 7.0.0 failed to build plugin @nativescript/firebase HOT 1
- firebase().ui().show crashes on Android with Error: Cannot read properties of undefined (reading 'launch') HOT 1
- @nativescript/firebase-auth and @nativescript/firebase-ui are incompatible on iOS HOT 3
- 'No APNS token specified' error getting token on iOS HOT 20
- [Android] dlopen failed: library "libNativeScript.so" not found HOT 5
- Android warning on App Check HOT 1
- [iOS][auth] Firebase App Check support for Firebase Authentication (Update firebase authentication to >10.8.0)
- With FirebaseAppDelegateProxyEnabled = false, phone authentication hangs and then crashes HOT 1
- `const admin = require('firebase-admin')` crashes with `TypeError: Cannot read properties of undefined (reading 'env')` HOT 3
- Displaying alert after canceling from firebase().ui().show() causes exception HOT 2
- [firebase-crashlytics] Fatal errors aren't sent to Firebase console HOT 2
- [Firebase-storage][Android] Error: An unknown error occurred, please check the HTTP result code and inner exception for server response. HOT 1
- Migrating from legacy FCM APIs to HTTP v1 HOT 3
- [firebase-crashlytics AND firebase-messaging] iOS app crashes upon launch HOT 6
- Expost remove listeners for firebase messaging
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from firebase.