wet-aquaW
Refine•4y ago•
2 replies
wet-aqua

with-nextjs does not work with antd v5

the new example with-nextjs does not work with antd v5
npm create refine-app@latest -- --example with-nextjs
cd with-nextjs
npm run start

error - /with-nextjs/node_modules/antd/es/anchor/style/index.js:1
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
^^^^^^

SyntaxError: Cannot use import statement outside a module
at Object.compileFunction (node:vm:352:18)
at wrapSafe (node:internal/modules/cjs/loader:1033:15)
at Module._compile (node:internal/modules/cjs/loader:1069:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
at Module.load (node:internal/modules/cjs/loader:981:3
message.txt20.81KB
message.txt20.81KB
Was this page helpful?