Giter Club home page Giter Club logo

Comments (5)

kricsleo avatar kricsleo commented on May 23, 2024

Tried with @antfu/[email protected](currently latest) in [email protected], it works fine. Any more information or an online reproduction?

from ni.

waleiwalei avatar waleiwalei commented on May 23, 2024

@kricsleo the version of ni is 0.21.9

from ni.

kricsleo avatar kricsleo commented on May 23, 2024

@kricsleo the version of ni is 0.21.9

Sorry, I also tried with 0.21.9, but it didn't show up. Could you please provide an online reproduction? That would help to resolve your issue.

# Here is my env
ni -v
# @antfu/ni  v0.21.9
# node       v16.20.2
# npm        v8.19.4
# npm -g     v8.19.4

from ni.

antfu avatar antfu commented on May 23, 2024

We temporarily closed this due to the lack of enough information. We could not identify whether it was a bug or a userland misconfiguration with the given info.
Please provide a minimal reproduction to reopen the issue.
Thanks.

Why reproduction is required

from ni.

waleiwalei avatar waleiwalei commented on May 23, 2024

the node version is 14.17.6
`

ni typescript
internal/process/esm_loader.js:74
internalBinding('errors').triggerUncaughtException(
^

Error [ERR_UNKNOWN_BUILTIN_MODULE]: No such built-in module: node:timers/promises
at Loader.builtinStrategy (internal/modules/esm/translators.js:285:11)
at new ModuleJob (internal/modules/esm/module_job.js:60:26)
at Loader.getModuleJob (internal/modules/esm/loader.js:258:11)
at async ModuleWrap. (internal/modules/esm/module_job.js:75:21)
at async Promise.all (index 11)
at async link (internal/modules/esm/module_job.js:80:9) {
code: 'ERR_UNKNOWN_BUILTIN_MODULE'
}`

`

ni -v
internal/process/esm_loader.js:74
internalBinding('errors').triggerUncaughtException(
^

Error [ERR_UNKNOWN_BUILTIN_MODULE]: No such built-in module: node:timers/promises
at Loader.builtinStrategy (internal/modules/esm/translators.js:285:11)
at new ModuleJob (internal/modules/esm/module_job.js:60:26)
at Loader.getModuleJob (internal/modules/esm/loader.js:258:11)
at async ModuleWrap. (internal/modules/esm/module_job.js:75:21)
at async Promise.all (index 11)
at async link (internal/modules/esm/module_job.js:80:9) {
code: 'ERR_UNKNOWN_BUILTIN_MODULE'
}`

from ni.

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.