-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Parcel #4142
Comments
Now I get: ➜ bun --bun x parcel index.html
3592 | // $FlowFixMe
3593 | (0, ($parcel$interopDefault($5VgCY$fs))).statSync = (filename)=>{
3594 | return this.fs.statSync(filename);
3595 | };
3596 | try {
3597 | m.load(filePath);
^
TypeError: m.load is not a function. (In 'm.load(filePath)', 'm.load' is undefined)
at load (/private/tmp/parcel@latest--bunx/node_modules/@parcel/package-manager/lib/index.js:3597:13)
at processTicksAndRejections (:61:77)
17 | try {
18 | binding = require('./build/Release/watcher.node');
19 | } catch (err) {
20 | try {
21 | binding = require('./build/Debug/watcher.node');
22 | } catch (err) {
^
error: No prebuild or local build of @parcel/watcher found. Tried @parcel/watcher-darwin-arm64. Please ensure it is installed (don't use --no-optional when installing with npm). Otherwise it is possible we don't support your platform yet. If this is the case, please report an issue to https://github.com/parcel-bundler/watcher.
at /private/tmp/parcel@latest--bunx/node_modules/@parcel/watcher/index.js:22:324
at anonymous (native:1:1)
at /private/tmp/parcel@latest--bunx/node_modules/@parcel/fs/lib/index.js:7:5
at anonymous (native:1:1)
at /private/tmp/parcel@latest--bunx/node_modules/@parcel/package-manager/lib/index.js:10:5
at anonymous (native:1:1)
at /private/tmp/parcel@latest--bunx/node_modules/@parcel/core/lib/worker.js:63:1
at anonymous (native:1:1)
at /private/tmp/parcel@latest--bunx/node_modules/@parcel/workers/lib/child.js:108:32
at childInit (/private/tmp/parcel@latest--bunx/node_modules/@parcel/workers/lib/child.js:107:25)
17 | try {
18 | binding = require('./build/Release/watcher.node');
19 | } catch (err) {
20 | try {
21 | binding = require('./build/Debug/watcher.node');
22 | } catch (err) { |
@birkskyum I might be wrong and can't test it right now, but you may need to add |
@KTamas , thank you for the tip - I tried just now but I can't make it work. |
Any news on this? I cannot seem to make parcel work when installed with bun. |
Yeah I'm still waiting on it as well. |
The same problems with Bun
🙏 |
I hit similar trouble using It just looks like a It's blocking me from using bun at work with parcel. Edit: I meant to say "point me in the right direction to help contribute to this issue..." Might be time to learn some zig? |
Also, I wanted to point out that This wouldn't normally be a problem but... > await import("detect-libc")
Object [Module] {
GLIBC: 'glibc',
MUSL: 'musl',
default: {
GLIBC: 'glibc',
MUSL: 'musl',
family: [Function: family],
familySync: [Function: familySync],
isNonGlibcLinux: [Function: isNonGlibcLinux],
isNonGlibcLinuxSync: [Function: isNonGlibcLinuxSync],
version: [Function: version],
versionSync: [Function: versionSync]
},
family: [Function: family],
familySync: [Function: familySync],
isNonGlibcLinux: [Function: isNonGlibcLinux],
isNonGlibcLinuxSync: [Function: isNonGlibcLinuxSync],
version: [Function: version],
versionSync: [Function: versionSync]
} This actually looks fine, and uses a function to find the libc family. However, parcel uses the let name = `@parcel/watcher-${process.platform}-${process.arch}`;
if (process.platform === 'linux') {
const { MUSL, family } = require('detect-libc');
if (family === MUSL) {
name += '-musl';
} else {
name += '-glibc';
}
} As you can see here, We can solve this problem by calling |
Now getting: ➜ bun --bun x parcel index.html
3619 | (0, ($parcel$interopDefault($aniHR$module)))._extensions[".js"](m, filename);
3620 | };
3621 | }
3622 | }
3623 | try {
3624 | m.load(filePath);
^
TypeError: m.load is not a function. (In 'm.load(filePath)', 'm.load' is undefined)
at load (/private/tmp/bunx-501-parcel@latest/node_modules/@parcel/package-manager/lib/index.js:3624:15)
Error: symbol 'napi_register_module_v1' not found in native module. Is this a Node API (napi) module? |
What version of Bun is running?
0.7.4+78defe7a87226b5b10766e24fae458a62811dab2
What platform is your computer?
Darwin 22.5.0 arm64 arm
What steps can reproduce the bug?
Make an index.html file:
Run
bun --bun x parcel index.html
What is the expected behavior?
This is the case if
--bun
flag is removedWhat do you see instead?
Additional information
Related to
argv
andexecArgv
option #4130The text was updated successfully, but these errors were encountered: