-
Notifications
You must be signed in to change notification settings - Fork 689
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
modules (dependencies) don't work: Error: Cannot find module #1519
Comments
@ryancwalsh see electron/electron#37535 for esm - new in latest major. Unfortunately Fiddle does not support Typescript. This looks unfortunately like temporary npm issue or something, because i had no issues:
I also added:
to |
@codebytere Thanks for your response! It's still not working for me. I'm a first-time Fiddle user, so it's just an assumption, but I'd think that what you probably did was open Fiddle, paste my Gist URL into the field at the top right, press Load Fiddle, and press Run. I tried again just now (on Ubuntu), and this is the error I get:
Thanks. |
Any new ideas, anyone? Thanks! cc @codebytere |
This looks like your issue. You're likely missing this package on Ubuntu - once you install it the issue should likely resolve. |
Thanks for this idea, @codebytere ! Unfortunately it seems I already have
Update: My Ubuntu laptop just froze, so after a forced restart, I tried again, and now I'm getting this error even though I do have Yarn installed according to:
Error in Fiddle:
|
My first fiddle attempt.
I wanted to create a fiddle to report a bug with robotjs, but I get this error even though I specified the dependency:
https://gist.github.com/ryancwalsh/0867273c6c0199b55d2a314525f61f63
What am I doing wrong?
I'm on Ubuntu.
Thanks!!
P.S. Is there a way to use TypeScript (and
import
instead ofrequire
)? It's kind of a hassle to translate my code into old JavaScript.The text was updated successfully, but these errors were encountered: