Giter Club home page Giter Club logo

Comments (8)

mayudev avatar mayudev commented on June 16, 2024

did you run npm install and npm run build?

from revcord.

timahey avatar timahey commented on June 16, 2024

Yes

from revcord.

mayudev avatar mayudev commented on June 16, 2024

I am not sure what its caused by then, maybe try cloning the repo again and doing everything from the beginning

from revcord.

timahey avatar timahey commented on June 16, 2024

Just did it all over again. But again the same error. I also noticed that when npm install warning npm WARN deprecated @npmcli/[email protected]: This functionality has been moved to @npmcli/fs is displayed, maybe an error occurs because of it?
image

from revcord.

mayudev avatar mayudev commented on June 16, 2024

no, it is very unlikely to be caused by that since it is only a warning
This might be a Windows-specific issue since I cannot reproduce it on Linux, I will try it tomorrow on a virtual machine

from revcord.

mayudev avatar mayudev commented on June 16, 2024

Okay, I was actually able to accidentally reproduce this issue. It seems I'm getting an identical output while omitting the --experimental-specifier-resolution=node part, but I'm using an older version of node. I believe this parameter was removed in node v19, which causes the issue.
A temporary solution would be to use Node version 18 or older. I am going to look for an actual solution tomorrow.

from revcord.

timahey avatar timahey commented on June 16, 2024

Okay, thanks for the answer

from revcord.

mayudev avatar mayudev commented on June 16, 2024

It turns out the fix was pretty easy, I just had to configure tsc to emit commonjs modules, and so it works without any experimental loader. I probably thought that method was outdated, but since the nodejs ecosystem is a mess it is still the only way to have things working on most versions. (03cdd6f)
I briefly tested it in node 16, 18 and 20 and everything seems to be working properly now.

from revcord.

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.