Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to compile #2

Open
erinnovations opened this issue Nov 7, 2023 · 1 comment
Open

Failed to compile #2

erinnovations opened this issue Nov 7, 2023 · 1 comment

Comments

@erinnovations
Copy link

erinnovations commented Nov 7, 2023

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
Copy link

hrenaud commented Nov 9, 2023

@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) => {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants