Comments (5)
I believe this would be fixed by updating the ios runtime:
"@nativescript/ios": "8.0.0",
Try upgrading that to 8.6.3
.
from nativescript.
Yep. Because ~
prefix will respect only patch updates, which in nativescript are just bugfix or polish without breaking compatibility (by semver)
Use ^
to be up-to-date with minor updates of nativescript modules, usually it will not break your app on update =)
from nativescript.
Thank you @rigor789 and @dschewchenko for your reply.
Now the project build successfully but when start it return the following error:
untime initialization took 296ms (version 8.6.3, V8 version 10.3.22)
CONSOLE LOG: Loading inspector modules...
CONSOLE LOG: Finished loading inspector modules.
***** Fatal JavaScript exception - application has been terminated. *****
NativeScript encountered a fatal error:
Error calling module function
TypeError: Cannot read properties of undefined (reading 'env')
File: (file:///app/vendor.js:171335:19)
StackTrace:
./node_modules/util/util.js(file:///app/vendor.js:171335:20)
at webpack_require(file:///app/runtime.js:23:41)
at ./node_modules/object-inspect/util.inspect.js(file:///app/vendor.js:157255:18)
at webpack_require(file:///app/runtime.js:23:41)
at ./node_modules/object-inspect/index.js(file:///app/vendor.js:156791:19)
at webpack_require(file:///app/runtime.js:23:41)
at ./node_modules/side-channel/index.js(file:///app/vendor.js:168363:15)
at webpack_require(file:///app/runtime.js:23:41)
at ./node_modules/qs/lib/stringify.js(file:///app/vendor.js:158483:22)
at webpack_require(file:///app/runtime.js:23:41)
at ./node_modules/qs/lib/index.js(file:///app/vendor.js:158192:17)
at webpack_require(file:///app/runtime.js:23:41)
at ./node_modules/url/url.js(file:///app/vendor.js:170199:17)
at webpack_require(file:///app/runtime.js:23:41)
at ./node_modules/@nota/nativescript-webview-ext/webview-ext-common.js(file:///app/vendor.js:130656:61)
at webpack_require(file:///app/runtime.js:23:41)
at ./node_modules/@nota/nativescript-webview-ext/webview-ext.ios.js(file:///app/vendor.js:131548:77)
at webpack_require(file:///app/runtime.js:23:41)
at ./src/app/account/register/register.component.ts(file:///app/bundle.js:3094:88)
at webpack_require(file:///app/runtime.js:23:41)
at ./src/app/app-routing.module.ts(file:///app/bundle.js:4097:94)
at webpack_require(file:///app/runtime.js:23:41)
at ./src/app/app.module.ts(file:///app/bundle.js:4437:77)
at webpack_require(file:///app/runtime.js:23:41)
at ./src/main.ts(file:///app/bundle.js:33:73)
at webpack_require(file:///app/runtime.js:23:41)
at webpack_exec(file:///app/bundle.js:33584:39)
at (file:///app/bundle.js:33585:111)
at webpack_require.X(file:///app/runtime.js:102:21)
at (file:///app/bundle.js:33585:47)
at (file:///app/bundle.js:33590:3)
at require(:1:232)
from nativescript.
it looks like you are trying to read process.env. And process.env.SomeEnv has not been replaced by webpack. Add debug; or console.log before this line and check. Check webpack configuration for working with env variables passed to runtime
from nativescript.
I didn't use process.env I just import environment and this webpack file
const webpack = require("@nativescript/webpack");
module.exports = (env) => {
webpack.init(env);
// Learn how to customize:
// https://docs.nativescript.org/webpack
return webpack.resolveConfig();
};
from nativescript.
Related Issues (20)
- RootLayout enterFrom animation bugged on iOS
- ReferenceError: NSURLSessionConfiguration is not defined HOT 14
- Missing API declarations & calling of restricted APIs HOT 8
- Android apps becomes unresponsive after resolution change
- NS PREVIEW don't working properly HOT 8
- Overlap using GridLayout iOS issue HOT 1
- [Known Issue] `npm i -g nativescript` error: gyp: binding.gyp not found HOT 5
- [feature] Allow bundler, eslint and typings generator to show API/SDK version availability warnings
- Upgrading to @nativescript/webpack-5.0.19 requires upgrade to @nativescript/core-8.7.0 HOT 3
- Devtools 0.0.1 Error: java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.lang.String HOT 1
- [android] Image tintColor set to null will cause a throwable
- Uncaught ReferenceError: NativeScriptViewFactory is not defined on iOS built with mode --release. HOT 33
- Frequent ANR: __cxa_throw ANR triggered by slow operations in main thread HOT 2
- ActionBar Blocking Events on Android by default HOT 4
- Spawn error on windows HOT 4
- Can not install NativeScript CLI on windows HOT 4
- left/right labels border in FlexboxLayout show extra border in iOS HOT 2
- SSL pinning in Nativescript Angular app
- Documentation for Setting Up Debugging is Missing HOT 1
- Module not found: Error: Can't resolve 'nativescript-permissions' HOT 1
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 nativescript.