Comments (2)
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.
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)
- Use custom node polyfill via `alias` and `external` query
- @observablehq/plot prototypes are missing a method due to skipped side effects
- Support GitHub Gists
- Failed to import - d3 HOT 1
- Failed init cli on NPM HOT 7
- Support importing modules from jsr.io HOT 1
- how to get react profiling version
- Failed to import - basehub/react - shows 500 Internal Server Error. - on commit
- Failed to import - @mui/material HOT 6
- Failed to import - openlayers
- All previously built urls are failing HOT 1
- Question: why don't you use yarn pnp
- Self hosted - 405 Response using the npm.pkg.github.com registry HOT 3
- Wrong `x-typescript-types` for `@babel/parser`
- Failed to import - @headlessui/react HOT 3
- Failed to import - [email protected] (previous version works) HOT 3
- Problem with using Monaco with ESM HOT 2
- Failed to import - Cloudscape components
- Failed to set `react` as external dependency
- Failed to set `@use-gesture/core/action` as external dependency 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 esm.sh.