Giter VIP home page Giter VIP logo

Comments (2)

mmuddasani avatar mmuddasani commented on May 28, 2024

The error can be reproduced by running ./test/bootstrap.ts --clean issue-502. I've shared test output below when I executed from my local machine.

For some odd reason, there is a null byte "\x00" inside the offending URL.

Local output for test issue-502:

Cleaning up...
Starting esm.sh server...
Config file not found, use default config
2023/09/25 17:48:55 [info] nodejs v20.6.0 installed, registry: https://registry.npmjs.org/, pnpm: 8.7.6
2023/09/25 17:48:55 [info] Server is ready
esm.sh server started.

[test issue-502]
2023/09/25 17:48:57 [error] [ns] cjsLexer: The argument 'path' must be a string, Uint8Array, or URL without null bytes. Received '/Users/mo/.esmd/npm/[email protected]/node_modules/.pnpm/[email protected]/node_modules/es5-ext/string/\x00#/contains/index.js'
---
TypeError [ERR_INVALID_ARG_VALUE]: The argument 'path' must be a string, Uint8Array, or URL without null bytes. Received '/Users/mo/.esmd/npm/[email protected]/node_modules/.pnpm/[email protected]/node_modules/es5-ext/string/\x00#/contains/index.js'
    at Object.readFileSync (node:fs:465:12)
    at exports.parseCjsExports (/Users/mo/node_modules/.pnpm/[email protected]/node_modules/esm-node-services/cjs-lexer.js:135:23)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async IncomingMessage.<anonymous> (/Users/mo/.esmd/ns/ns.js:20:20)
---
2023/09/25 17:48:57 [error] build 'v132/[email protected]/denonext/string/#/contains.js': cjsLexer: The argument 'path' must be a string, Uint8Array, or URL without null bytes. Received '/Users/mo/.esmd/npm/[email protected]/node_modules/.pnpm/[email protected]/node_modules/es5-ext/string/\x00#/contains/index.js'
2023/09/25 17:48:58 [error] [ns] cjsLexer: The argument 'path' must be a string, Uint8Array, or URL without null bytes. Received '/Users/mo/.esmd/npm/[email protected]/node_modules/.pnpm/[email protected]/node_modules/es5-ext/string/\x00#/contains/index.js'
---
TypeError [ERR_INVALID_ARG_VALUE]: The argument 'path' must be a string, Uint8Array, or URL without null bytes. Received '/Users/mo/.esmd/npm/[email protected]/node_modules/.pnpm/[email protected]/node_modules/es5-ext/string/\x00#/contains/index.js'
    at Object.readFileSync (node:fs:465:12)
    at exports.parseCjsExports (/Users/mo/node_modules/.pnpm/[email protected]/node_modules/esm-node-services/cjs-lexer.js:135:23)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async IncomingMessage.<anonymous> (/Users/mo/.esmd/ns/ns.js:20:20)
---
2023/09/25 17:48:58 [error] build 'v132/[email protected]/denonext/string/#/contains.js': cjsLexer: The argument 'path' must be a string, Uint8Array, or URL without null bytes. Received '/Users/mo/.esmd/npm/[email protected]/node_modules/.pnpm/[email protected]/node_modules/es5-ext/string/\x00#/contains/index.js'
error: Import 'http://localhost:8080/v132/[email protected]/denonext/string/$$/contains.js' failed: 500 Internal Server Error
    at http://localhost:8080/[email protected]:6:8
Closing esm.sh server...

from esm.sh.

ije avatar ije commented on May 28, 2024

may i ask what it is your os? seems it works for me(macOS m1) and the CI(linux, ubuntu)

from esm.sh.

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.