Giter Site home page Giter Site logo

Comments (5)

vince-fugnitto avatar vince-fugnitto commented on July 16, 2024

@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",

from generator-theia-extension.

msujew avatar msujew commented on July 16, 2024

@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.

from generator-theia-extension.

badGGbad avatar badGGbad commented on July 16, 2024

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

from generator-theia-extension.

jfaltermeier avatar jfaltermeier commented on July 16, 2024

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

from generator-theia-extension.

vince-fugnitto avatar vince-fugnitto commented on July 16, 2024

Fixed by #173.

from generator-theia-extension.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.