strapi / strapi-next-14-dashboard-demo

111 stars 56 forks source link

Failed to compile #2

Open erinnovations opened 11 months ago

erinnovations commented 11 months ago

After a succesful install it fails to compile with yarn build. Latest yarn, Node 18.17.0.

` ./node_modules/next/dist/esm/shared/lib/router/utils/app-paths.js A Node.js module is loaded ('url' at line 3) which is not supported in the Edge Runtime. Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime

Import trace for requested module: ./node_modules/next/dist/esm/shared/lib/router/utils/app-paths.js

Linting and checking validity of types .Failed to compile.

./app/ui/dashboard/latest-invoices.tsx:17:32 `

image

hrenaud commented 11 months ago

@erinnovations I resolved (quick and dirty fix) the problem by changing in /strapi-next-14-dashboard-demo/frontend/app/ui/dashboard/latest-invoices.tsx the 17th line like this:

from {latestInvoices.map((invoice, i) => { to {latestInvoices.map((invoice: any, i:number) => {