Skip to content

modules (dependencies) don't work: Error: Cannot find module #1519

Open
@ryancwalsh

Description

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:

image

App threw an error during load
Error: Cannot find module '@jitsi/robotjs'
Require stack:
- /tmp/electron-fiddle-90379-VDHq4ptMJ80k/main.js
- /home/myname/.config/Electron Fiddle/electron-bin/current/resources/default_app.asar/main.js

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 of require)? It's kind of a hassle to translate my code into old JavaScript.

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions