strapi-next-14-dashboard-demo
strapi-next-14-dashboard-demo copied to clipboard
Failed to compile
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 `
@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) => {