You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Quoting a great write-up shared by from Gordon Freeman on discord:
npx create-react-app --template typescript
npm run eject
add the following line to the config/webpack.config.json in the return statement
experiments: { topLevelAwait: true },
(on my setup it is before the line target: ['browserslist'],)
if there is an import error you might have to set the file extension of your zkapp in
/build/src/index.js manually (like this: import { Multisignature } from './Multisignature.js';) -- .js is the important part
6.1 Don't forget to add this file extension after every build of your zkapp
The text was updated successfully, but these errors were encountered:
We built support for NextJS into the zkApp CLI (via zk project <name> --ui next) and have chosen to focus our efforts and guide devs down NextJS path b/c it's a better, modern framework, a CRA workflow that requires using 'eject' will leave devs with a maintainence headache long term, etc.
Quoting a great write-up shared by from Gordon Freeman on discord:
The text was updated successfully, but these errors were encountered: