Comments (7)
@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.
@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.
@NickJorens I pulled your project & got it running by adding "skipLibCheck": true
in the tsconfig, could you try that out?
from dexter.
@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.
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.
@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.
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)
- Provider for Ogmios data
- [Enhancement]: Add retry limit to request config
- [Enhancement]: Support filtering on multiple assets
- [Enhancement]: Add `withSwapOutAmount()` to SwapRequest
- [Enhancement]: Add flag whether to pull 'extra' LP information HOT 1
- [Enhancement]: Support limit orders
- [Bug]: transaction.providerData.tx.sign HOT 13
- [Bug]: Wingriders Swaps immediately out of range HOT 1
- [Bug]: IBTC, IUSD - Input token doesn't exist in the set liquidity pool. HOT 3
- [Bug]: cancelSwapRequest failing on all dexs HOT 6
- [Bug]: DefinitionBuilder changing Order definition HOT 8
- [Enhancement]: Add Spectrum Dex HOT 1
- [Bug]: Append slash in proxy URL
- [Enhancement]: Deno module resolution HOT 3
- [Bug]: "Cannot find module" when dynamic importing in CJS file HOT 2
- [Bug]: Liquidity Pool look giving inconsistent responses HOT 19
- [Enhancement]: Performance - Allow HTTP Keepalive Axios Opt In. HOT 2
- [Bug]: Cannot sign swapRequest HOT 11
- I'm having an issue trying to swap a token to ADA on all DEXs HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dexter.