GithubHelp home page GithubHelp logo

Comments (5)

rigor789 avatar rigor789 commented on June 24, 2024

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.

dschewchenko avatar dschewchenko commented on June 24, 2024

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.

kfathy-ys avatar kfathy-ys commented on June 24, 2024

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.

dschewchenko avatar dschewchenko commented on June 24, 2024

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.

kfathy-ys avatar kfathy-ys commented on June 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.