question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

JS ERROR Error: Could not find module './' when debugging iOS app

See original GitHub issue

Please, 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.

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:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
gdereesecommented, Sep 4, 2017

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.

1reaction
BRO-mesdocteurscommented, Jul 30, 2018

i removed ios platform tns platform remove ios and run again tns run ios and it’s ok !

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found