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.

[BUG] Typing an import in a file other than the storyboard will bring down the editor

See original GitHub issue

Sample project: https://utopia.pizza/p/5585651d-cant-import-this/ - try uncommenting and completing the import statement on line 4 of app.js

Whilst trying to write an import statement in any file other than the storyboard file, the editor will crash during module resolution as soon as you start writing the path for the import, with the error:

RangeError: Maximum call stack size exceeded
    at indexJsPath (module-resolution.ts:188)
    at failoverResolveResults (module-resolution.ts:32)
    at resolveNonRelativeModule (module-resolution.ts:186)
    at eval (module-resolution.ts:198)
    at failoverResolveResults (module-resolution.ts:32)
    at resolveNonRelativeModule (module-resolution.ts:186)
    at resolveModule (module-resolution.ts:223)
    at Object.resolveModulePath (module-resolution.ts:229)
    at Object.eval [as resolve] (package-manager.ts:21)
    at eval (editor-state.ts:249)

I highly suspect this is related to #1082

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
enidemicommented, May 4, 2021

I can still see the error when manually writing an import statement, as it reaches the first / before the src in the path it throws an error.

0reactions
Rheeseybcommented, May 4, 2021

Yep, confirmed, it is indeed still a bug. Re-opening

Read more comments on GitHub >

github_iconTop Results From Across the Web

Xcode 6 - Main.storyboard only showing up as source code ...
As so many people have pointed out, right-click on the file and hover over Open As and select Default - Interface Builder ....
Read more >
Storyboarder: Frequently Asked Questions - Wonder Unit
How do I get started? ... Can I edit boards externally with another editor than Photoshop? ... is to name the file of...
Read more >
Pycharm doesn't detect / suggest modules, classes, or ...
It's about everything other than built-ins. It doesn't even detect modules in python's stdlib as i type. > try File > Invadidate caches/restart, ......
Read more >
Xcode 14 Release Notes | Apple Developer Documentation
Workaround: Quit and relaunch Xcode. CGFLOAT_EPSILON is no longer always type Float on watchOS, and it may cause compile issues. (88698530). Workaround: ...
Read more >
How to Use Windows 10 FREE Video Editor - YouTube
Learn how to edit videos using this free app that comes with Windows 10. In this video, I show you how to import...
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