Open rsodre opened 1 month ago
[!IMPORTANT]
Review skipped
Draft detected.
Please check the settings in the CodeRabbit UI or the
.coderabbit.yaml
file in this repository. To trigger a single review, invoke the@coderabbitai review
command.You can disable this status message by setting the
reviews.review_status
tofalse
in the CodeRabbit configuration file.
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
@ponderingdemocritus this is configured like the pistols client, but is not building 🫤 it's complaining that the wasm is a ESM module... don't know if you have any idea, I'll will get back to it later
~/Dev/Realms/dojo.js/examples/clients/react/react-nextjs $ pnpm run build
> react-nextjs@0.1.0 build /Users/roger/Dev/Realms/dojo.js/examples/clients/react/react-nextjs
> tsc && NODE_OPTIONS='--experimental-wasm-modules' next build
✓ Linting and checking validity of types
Failed to compile.
../../../../packages/torii-wasm/pkg/web/dojo_c_bg.wasm
Module not found: ESM packages (./dojo_c_bg.js) need to be imported. Use 'import' to reference the package instead. https://nextjs.org/docs/messages/import-esm-externals
https://nextjs.org/docs/messages/module-not-found
Import trace for requested module:
../../../../packages/torii-wasm/pkg/web/dojo_c.js
../../../../packages/torii-client/dist/index.js
./src/dojo/generated/setup.ts
./src/pages/index.tsx
> Build failed because of webpack errors
Creating an optimized production build . ELIFECYCLE  Command failed with exit code 1.
~/Dev/Realms/dojo.js/examples/clients/react/react-nextjs $
have changed directory structure
Can you update this and include in create-dojo following similar pattern to other examples
Closes #153
Introduced changes
Checklist