-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
Expected
Thanks the hard work of @devongovett , I'm able to replace Vite with Parcel to get rid of complex configuration & dependencies!
But I find a compatibility bug in PNPM projects.
Actual
Run pnpm build:storybook in idea2app/Idea-React#53, the error below will be thrown:
🚨 Build failed.
@parcel/core: Failed to resolve 'react-dom/client.js' from
'./node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]_/node_modules/@parcel/resolver-storybook/dist/react.js'
/workspaces/Idea-React/node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]_/node_modules/@parcel/resolver-storybook/dist/react.js:3:34
@parcel/resolver-default: Module 'react-dom/client.js' is not exported from the 'react-dom' package
/workspaces/Idea-React/node_modules/react-dom/package.json:39:14
38 | ],
> 39 | "exports": {
> | ^
> 40 | ".": "./index.js",
> | ^^^^^^^^^^^^^^^^^^^^^^
> 41 | "./client": "./client.js",
> | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> 42 | "./server": {
> | ^^^^^^^^^^^^^^^^^
> 43 | "deno": "./server.browser.js",
> | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> 44 | "worker": "./server.browser.js",
> | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> 45 | "browser": "./server.browser.js",
> | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> 46 | "default": "./server.node.js"
> | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> 47 | },
> | ^^^^^^
> 48 | "./server.browser": "./server.browser.js",
> | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> 49 | "./server.node": "./server.node.js",
> | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Segmentation fault (core dumped)
ELIFECYCLE Command failed with exit code 139.
Environment
System:
OS: Linux 6.5 Ubuntu 20.04.6 LTS (Focal Fossa)
CPU: (2) x64 AMD EPYC 7763 64-Core Processor
Memory: 4.40 GB / 7.74 GB
Container: Yes
Shell: 5.0.17 - /bin/bash
Binaries:
Node: 20.18.1 - ~/nvm/current/bin/node
Yarn: 1.22.22 - /usr/bin/yarn
npm: 10.8.2 - ~/nvm/current/bin/npm
pnpm: 9.15.0 - ~/nvm/current/bin/pnpm
Managers:
Apt: 2.0.10 - /usr/bin/apt
Composer: 2.8.4 - /usr/local/bin/composer
Gradle: 8.11.1 - /usr/local/sdkman/candidates/gradle/current/bin/gradle
Maven: 3.9.9 - /usr/local/sdkman/candidates/maven/current/bin/mvn
pip3: 24.3.1 - ~/.python/current/bin/pip3
RubyGems: 3.5.11 - /usr/local/rvm/rubies/ruby-3.3.4/bin/gem
Utilities:
CMake: 3.16.3 - /usr/bin/cmake
Make: 4.2.1 - /usr/bin/make
GCC: 9.4.0 - /usr/bin/gcc
Git: 2.47.1 - /usr/local/bin/git
Clang: 10.0.0 - /usr/bin/clang
Curl: 7.68.0 - /usr/bin/curl
OpenSSL: 3.0.15 - /opt/conda/bin/openssl
Virtualization:
Docker: 27.3.1 - /usr/bin/docker
Docker Compose: 2.31.0 - /usr/local/bin/docker-compose
IDEs:
Nano: 4.8 - /usr/bin/nano
VSCode: 1.96.3 - /vscode/bin/linux-x64/91fbdddc47bc9c09064bf7acf133d22631cbf083/bin/remote-cli/code
Vim: 8.1 - /usr/bin/vim
Languages:
Bash: 5.0.17 - /usr/bin/bash
Go: 1.23.4 - /usr/local/go/bin/go
Java: 21.0.5 - /home/codespace/java/current/bin/javac
Perl: 5.30.0 - /usr/bin/perl
PHP: 8.2.13 - /home/codespace/.php/current/bin/php
Python: 3.12.1 - /home/codespace/.python/current/bin/python
Python3: 3.12.1 - /home/codespace/.python/current/bin/python3
Ruby: 3.3.4 - /usr/local/rvm/gems/ruby-3.3.4/bin/ruby
Databases:
SQLite: 3.45.3 - /opt/conda/bin/sqlite3
Metadata
Metadata
Assignees
Labels
No labels