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
npx gatsby new lalohao.github.io
cd lalohao.github.io
yarn add gatsby-plugin-orga @orgajs/react @orgajs/loader
Then added 'gatsby-plugin-orga' plugin to the gatsby config, unfortunately it fails with the following error:
npm run develop
>[email protected] develop
> gatsby develop
success compile gatsby files - 1.236s
success load gatsby config - 0.020s
ERROR UNKNOWN
Error in"/Users/hao/dev/personal/lalohao.github.io/node_modules/gatsby-plugin-orga/gatsby-node": require() of ES Module /Users/hao/dev/personal/lalohao.github.io/node_modules/@orgajs/orgx/index.js from /Users/hao/dev/personal/lalohao.github.io/node_modules/gatsby-plugin-orga/gatsby-node.js not supported.
Instead change the require of index.js in /Users/hao/dev/personal/lalohao.github.io/node_modules/gatsby-plugin-orga/gatsby-node.js to a dynamic import() which is available in all CommonJS modules.
Error: [ERR_REQUIRE_ESM]: require() of ES Module /Users/hao/dev/personal/lalohao.github.io/node_modules/@orgajs/orgx/index.js from /Users/hao/dev/personal/lalohao.github.io/node_modules/gatsby-plugin-orga/gatsby-node.js not supported.
Instead change the require of index.js in /Users/hao/dev/personal/lalohao.github.io/node_modules/gatsby-plugin-orga/gatsby-node.js to a dynamic import() which is available in all CommonJS modules.
- gatsby-node.js:7 Object.<anonymous>
[lalohao.github.io]/[gatsby-plugin-orga]/gatsby-node.js:7:21
not finished load plugins - 0.739s
I was trying to follow the instructions from here: https://orga.js.org/docs/getting-started/gatsby/
npx gatsby new lalohao.github.io cd lalohao.github.io yarn add gatsby-plugin-orga @orgajs/react @orgajs/loader
Then added
'gatsby-plugin-orga'
plugin to the gatsby config, unfortunately it fails with the following error:These are the versions npx installed for me:
Do you know if i missed anything to make it work?
The text was updated successfully, but these errors were encountered: