Giter VIP home page Giter VIP logo

Comments (7)

Sluder avatar Sluder commented on July 19, 2024

@NickJorens Im assuming your issue here is running a project with Dexter, could you try running the project with the --es-module-specifier-resolution=node flag? So node --es-module-specifier-resolution=node build/src/index.js

from dexter.

NickJorens avatar NickJorens commented on July 19, 2024

@Sluder I'm still getting an error. I also defined that in my tsconfig.json

➜  dexter git:(main) node --es-module-specifier-resolution=node build/src/index.js
node:internal/modules/cjs/loader:1051
  throw err;
  ^

Error: Cannot find module '/Users/nick/dexter/build/src/index.js'
    at Module._resolveFilename (node:internal/modules/cjs/loader:1048:15)
    at Module._load (node:internal/modules/cjs/loader:901: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 v20.4.0

from dexter.

Sluder avatar Sluder commented on July 19, 2024

@NickJorens I pulled your project & got it running by adding "skipLibCheck": true in the tsconfig, could you try that out?

from dexter.

NickJorens avatar NickJorens commented on July 19, 2024

@Sluder I'm sorry but that didn't resolve the error. What version of Node are you running?

node:internal/errors:496
    ErrorCaptureStackTrace(err);
    ^

Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/Users/nick/dexter/node_modules/@indigo-labs/dexter/build/constants' imported from /Users/nick/dexter/node_modules/@indigo-labs/dexter/build/index.js
    at new NodeError (node:internal/errors:405:5)
    at finalizeResolution (node:internal/modules/esm/resolve:225:11)
    at moduleResolve (node:internal/modules/esm/resolve:837:10)
    at defaultResolve (node:internal/modules/esm/resolve:1035:11)
    at DefaultModuleLoader.resolve (node:internal/modules/esm/loader:251:12)
    at DefaultModuleLoader.getModuleJob (node:internal/modules/esm/loader:140:32)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:76:33)
    at link (node:internal/modules/esm/module_job:75:36) {
  code: 'ERR_MODULE_NOT_FOUND'
}

Node.js v20.4.0

I updated the repo with your change.

from dexter.

Sluder avatar Sluder commented on July 19, 2024

Sorry forgot to add, I got it running by adding the skipLibCheck & using the --es-module-specifier-resolution=node flag when running the project. I am on node version v18.16

from dexter.

NickJorens avatar NickJorens commented on July 19, 2024

@Sluder So it seems this package is incompatible with v20.x
Works fine on v18.16 LTS

I'll switch to LTS for now.
Something to be aware of in the future :)

Thanks for your help!

from dexter.

Sluder avatar Sluder commented on July 19, 2024

Interesting find, appreciate you letting me know!
We've had this issue open to investigate the requirements as well #28

from dexter.

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.