JS ERROR Error: Could not find module './' when debugging iOS app
See original GitHub issuePlease, provide the details below:
Did you verify this is a real problem by searching Stack Overflow and the other open issues in this repo?
Yes
Tell us about the problem
Please, ensure your title is less than 63 characters long and starts with a capital letter.
Which platform(s) does your issue occur on?
iOS
Please provide the following version numbers that your issue occurs with:
- CLI: 3.1.3
- Cross-platform modules: 3.1.1
- Runtime(s): iOS 3.1.0
- Plugin(s): n/a
Please tell us how to recreate the issue in as much detail as possible.
- Download project source at https://github.com/gdereese/nativescript-jserror-demo
- tns install
- tns debug ios
Application prepares/builds, deploys to simulator, but fails to start displaying the following error in the console:
[native code]: JS ERROR Error: Could not find module './'. Computed path '/Users/gdereese/Library/Developer/CoreSimulator/Devices/15B2BE33-AE47-485D-9D8B-8B08F7CC6C3A/data/Containers/Bundle/Application/CE093ADC-5CFB-4D69-9A52-121B037460C8/nativescriptjserrordemo.app/app'.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:8 (1 by maintainers)
Top Results From Across the Web
Could not find module for target 'x86_64-apple-ios-simulator'
Today I solved this error on our app for library 'CodableWrappers' and this solved my problem: close XCode; open Finder app and show...
Read more >Unable to find module for DevMenu - after upgrading to Expo 44
When I launch it on a simulator, I see the error, but it's not fatal. Again, I can not seem to open the...
Read more >Plugin development : Error: Cannot find module 'xcode'
Hello, i am trying to integrate an Ios plugin (javascript with a swift file) ... to build the IOS app, its simple return...
Read more >module failed to load due to an error and `appregistry ...
A module failed to load due to an error and AppRegistry.registerComponent wasn't called. your index file is using the appName from app.json name...
Read more >Troubleshooting | React Navigation
If the module points to an npm package (i.e. the name of the module doesn't with ./ ), then it's probably due to...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I think I resolved the issue. Turns out I had deleted the package.json file that existed inside the /app folder thinking it was something that was only needed for the template used to seed the project. Once I put it back, the error was no longer reported.
i removed ios platform
tns platform remove ios
and run againtns run ios
and it’s ok !