Skip to content
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

Error when starting Theia (hello world template) #175

Open
JonasHelming opened this issue Sep 18, 2023 · 3 comments
Open

Error when starting Theia (hello world template) #175

JonasHelming opened this issue Sep 18, 2023 · 3 comments

Comments

@JonasHelming
Copy link
Contributor

I get the following error when starting Theia after generating a fresh template:

node:internal/modules/cjs/loader:1093
throw err;
^

Error: Cannot find module '/home/(...)/browser-app/src-gen/backend/main.js'
at Module._resolveFilename (node:internal/modules/cjs/loader:1090:15)
at Module._load (node:internal/modules/cjs/loader:934:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12)
at node:internal/main/run_main_module:23:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}

Node.js v19.9.0
Done in 1.42s.

@sdirix
Copy link
Contributor

sdirix commented Sep 18, 2023

With a recent commit the flow changed a bit.

The generated Browser and Electron applications are no longer build automatically but must be build manually. This change is reflected in the generated READMEs.

Therefore yarn build:browser must be executed before running yarn start:browser.

Do you think that's fine or should we rather build one of the example apps again by default, e.g. the browser application?

@JonasHelming
Copy link
Contributor Author

I think, we should build both apps directly after the generator has generated, @vince-fugnitto WDYT?

@jcortell68
Copy link

FWIW, we ran into this, too. Also thought it was a regression until I found this ticket.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants