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

Error: global.registerWebpackModules is not a function (Clean install) #18

Open
ameistad opened this issue Jun 2, 2019 · 0 comments
Open

Comments

@ameistad
Copy link

ameistad commented Jun 2, 2019

I'm getting this error on a clean install and running npm run serve:ios

***** Fatal JavaScript exception - application has been terminated. *****
Native stack trace:
1   0x1011c9c4f NativeScript::reportFatalErrorBeforeShutdown(JSC::ExecState*, JSC::Exception*, bool)
2   0x10120bb05 -[TNSRuntime executeModule:referredBy:]
3   0x100c1efa3 main
4   0x10442d541 start
JavaScript stack trace:
1   @file:///app/vendor.js:57005:42
2   ../node_modules/tns-core-modules/utils/mainthread-helper.ios.js@file:///app/vendor.js:57025:34
3   __webpack_require__@file:///app/bundle.js:76:34
4   ../node_modules/tns-core-modules/utils/utils-common.js@file:///app/vendor.js:57266:46
5   __webpack_require__@file:///app/bundle.js:76:34
6   ../node_modules/tns-core-modules/utils/utils.ios.js@file:///app/vendor.js:57492:41
7   __webpack_require__@file:///app/bundle.js:76:34
8   @file:///app/vendor.js:128:32
9   ../node_modules/nativescript-vue/dist/index.js@file:///app/vendor.js:13766:34
10  __webpack_require__@file:///app/bundle.js:76:34
11  @file:///app/bundle.js:508:139
12  ./main.js@file:///app/bundle.js:531:34
13  __webpack_require__@file:///app/bundle.js:76:34
14  @file:///app/bundle.js:545:37
15  __webpack_require__@file:///app/bundle.js:76:34
16  checkDeferredModules@file:///app/bundle.js:45:42
17  @file:///app/bundle.js:149:38
18  anonymous@file:///app/bundle.js:150:12
19  evaluate@[native code]
20  mo<…>
JavaScript error:
file:///app/vendor.js:57005:42: JS ERROR TypeError: global.registerWebpackModules is not a function. (In 'global.registerWebpackModules(context)', 'global.registerWebpackModules' is undefined)
(CoreFoundation) *** Terminating app due to uncaught exception 'NativeScript encountered a fatal error: TypeError: global.registerWebpackModules is not a function. (In 'global.registerWebpackModules(context)', 'global.registerWebpackModules' is undefined)
at
1   @file:///app/vendor.js:57005:42
2   ../node_modules/tns-core-modules/utils/mainthread-helper.ios.js@file:///app/vendor.js:57025:34
3   __webpack_require__@file:///app/bundle.js:76:34
4   ../node_modules/tns-core-modules/utils/utils-common.js@file:///app/vendor.js:57266:46
5   __webpack_require__@file:///app/bundle.js:76:34
6   ../node_modules/tns-core-modules/utils/utils.ios.js@file:///app/vendor.js:57492:41
7   __webpack_require__@file:///app/bundle.js:76:34
8   @file:///app/vendor.js:128:32
9   ../node_modules/nativescript-vue/dist/index.js@file:///app/vendor.js:13766:34
10  __webpack_require__@file:///app/bundle.js:76:34
11  @file:///app/bundle.js:508:139
12  ./main.js@file:///app/bundle.js:531:34
13  __webpack_require__@file:///app/bundle.js:76:34

Output from tns doctor

✔ Getting environment information

No issues were detected.
✔ Your ANDROID_HOME environment variable is set and points to correct directory.
✔ Your adb from the Android SDK is correctly installed.
✔ The Android SDK is installed.
✔ A compatible Android SDK for compilation is found.
✔ Javac is installed and is configured properly.
✔ The Java Development Kit (JDK) is installed and is configured properly.
✔ Xcode is installed and is configured properly.
✔ xcodeproj is installed and is configured properly.
✔ CocoaPods are installed.
✔ CocoaPods update is not required.
✔ CocoaPods are configured properly.
✔ Your current CocoaPods version is newer than 1.0.0.
✔ Python installed and configured correctly.
✔ The Python 'six' package is found.
✔ Xcode version 10.2.1 satisfies minimum required version 9.
✔ Getting NativeScript components versions information...
✔ Component nativescript has 5.4.0 version and is up to date.
✔ Component tns-core-modules has 5.4.1 version and is up to date.
✔ Component tns-android has 5.4.0 version and is up to date.
✔ Component tns-ios has 5.4.0 version and is up to date.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant