[BUG] Typing an import in a file other than the storyboard will bring down the editor
See original GitHub issueSample 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:
- Created 2 years ago
- Comments:5 (5 by maintainers)
Top 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 >
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 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.Yep, confirmed, it is indeed still a bug. Re-opening