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

Scaffolding start error #170

Closed
bad-github opened this issue Jul 5, 2023 · 5 comments
Closed

Scaffolding start error #170

bad-github opened this issue Jul 5, 2023 · 5 comments

Comments

@bad-github
Copy link

Bug Description:

I use the widget option of scaffolding to create a project, but it fails to run on the desktop

Steps to Reproduce:

1.yo theia-extension -t 1.34.4
2.I also added "main": "src-gen/frontend/electron-main.js" to electron-app/package.json
3.yarn watch && yarn start:electron

image

Additional Information

  • Operating System: macos
  • Theia Version: 1.34.4
@vince-fugnitto vince-fugnitto transferred this issue from eclipse-theia/theia Jul 5, 2023
@vince-fugnitto
Copy link
Member

@gouych thank you for the discussion, I transferred the issue to the appropriate repository.

Can you try with the latest version of the generator (0.1.35)? Everything works fine for me, I point to the lib folder for the main entry:

"main": "lib/backend/electron-main.js",

@msujew
Copy link
Member

msujew commented Jul 5, 2023

@vince-fugnitto The issue seems to be about the latest community release (1.34.4), using the main entry you point out won't work.

@gouych Can you try the latest Theia release (1.39.0) as well? Just to narrow down whether it's an issue related to the community release or a general one.

@bad-github
Copy link
Author

Everything works fine with the latest version.
Is there a solution for version 1.34.4.

@jfaltermeier
Copy link
Contributor

jfaltermeier commented Jul 6, 2023

I am seeing issues with 1.39 in the electron-app as well, using the hello world template and the 0.1.35 generator.
For me either
changing prepare to rebuild before the actual build ("prepare": "theia rebuild:electron && theia build --mode development",)
or
adding
"main": "src-gen/backend/electron-main.js",
works.

Otherwise starting the electron app fails with Error: node-loader: Error: Module did not self-register: errors.

Steps to reproduce:

mkdir my-extension && cd my-extension
yo theia-extension
<Enter> (Hello World extension type)
<Enter> (hello-world extension name)
yarn start:electron

jfaltermeier added a commit that referenced this issue Jul 17, 2023
* rebuild needs to be run performed before build
jfaltermeier added a commit that referenced this issue Jul 19, 2023
* rebuild needs to be run performed before build
@vince-fugnitto
Copy link
Member

Fixed by #173.

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

4 participants