Closed cogoo closed 2 years ago
Maybe we should #yolo merge this, publish it, and see?
@steveluscher lol
@jordansexton What's holding #276 back from being merged in? I'm trying to do work in a repo where my coworkers and I are using Webpack 5 and this is blocking us from moving forward. There are manual fixes that we've tried that work but those are not satisfactory for shipping of course.
EDIT: I see that PR was only opened on Thursday or something so makes sense that it isn't in. Appreciate the work y'all are doing
@TomLisankie thanks for understanding. #276 just needs to be tested before merging (I rushed to publish its predecessor #264 and broke all the packages) and I haven't had time to test it yet.
@TomLisankie thanks for understanding. #276 just needs to be tested before merging (I rushed to publish its predecessor #264 and broke all the packages) and I haven't had time to test it yet.
Got it, thanks.
Anyone have issue with latest wallet adapter with cra 4.0 ? I am trying clone https://github.com/exiled-apes/candy-machine-v2-mint then replace the wallet adapter with "@solana/wallet-adapter-wallets": "^0.14.2" and hit error below when run npm start
./node_modules/@solana/wallet-adapter-wallets/lib/esm/adapters.mjs
Can't import the named export 'BitKeepWalletAdapter' from non EcmaScript module (only default export is available)
Can someone please document what the correct work around would be? As stated above, simply downgrading CRA does not work
Anyone have issue with latest wallet adapter with cra 4.0 ?
Can someone please document what the correct work around would be?
See #265!
Published:
@solana/wallet-adapter-wallets => 0.14.3
Please try these packages using CRA 5! And huge thanks to @steveluscher for your tireless work on this.
Amazing! Thanks
This is fixed via #299.
The core issue is that the Torus and Ledger JS libraries don't correctly polyfill and incorrectly use globals, and this isn't handled by Webpack 5 without additional configuration, which you can't add with CRA5 alone. We use react-app-rewired to override, as Craco doesn't support CRA5 yet.
See the new create-react-app-starter project. The key parts are the config-overrides.js file and npm:process
dependency.
Published:
@jordansexton thanks for all of this. I took my CRA project and just copied over the releveant parts from the package.json (devDependencies) and config.json into my existing project and all is well
I got the error message
./node_modules/@solana/wallet-adapter-wallets/lib/esm/adapters.mjs Can't import the named export 'BitKeepWalletAdapter' from non EcmaScript module (only default export is available)
Sorry I didn't find the right solution,Tried the upgrade version to no avail, Can someone tell me how to fix it, thanks
Did anyone manage to fix this issue?
./node_modules/@netless/window-manager/dist/index.mjs Can't import the named export 'AnimationMode' from non EcmaScript module (only default export is available)
working with solana has been the worst experience of my programming life
Edit by @jordansexton:
To anyone looking for a very good workaround right now, don't use Create React App. Just use the react-ui-starter or material-ui-starter projects with Parcel, or the nextjs-starter project with Next.js, save yourself a huge hassle, and get much faster builds with SWC instead of Babel.
Describe the bug Broken build with CRA v5, unable to resolve modules.
To Reproduce Steps to reproduce the behavior:
npx create-react-app my-app-test
Solution Relative imports must include a file extension to follow ESM strict mode requirements introduced in Webpack 5. It's valid typescript to include
.js
extensions as part of the import path 🤯 :example.ts
compiles to
example.js