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

Error on build: Filesystem cache is not enabled, cannot read plugin from phsyical path #63

Closed
behnamazimi opened this issue Jun 5, 2023 · 1 comment

Comments

@behnamazimi
Copy link

Hi there,

I'm currently facing an error while trying to build my NextJS project with the latest version of dependencies. The error message is as follows:

./node_modules/next/dist/pages/_document.js
Error: Filesystem cache is not enabled, cannot read plugin from physical path

./node_modules/next/dist/pages/_error.js
Error: Filesystem cache is not enabled, cannot read plugin from physical path

./src/pages/[locale]/index.tsx
Error: Filesystem cache is not enabled, cannot read plugin from physical path

./src/pages/_app.tsx
Error: Filesystem cache is not enabled, cannot read plugin from physical path

./src/pages/index.tsx
Error: Filesystem cache is not enabled, cannot read plugin from physical path

Here are the relevant dependencies:

"dependencies": {
  "@lingui/core": "^4.2.0",
  "@lingui/react": "^4.2.0",
  "next": "13.4.4",
  "react": "18.2.0",
  "react-dom": "18.2.0"
},
"devDependencies": {
  "@lingui/cli": "^4.2.0",
  "@lingui/loader": "^4.2.0",
  "@lingui/macro": "^4.2.0",
  "@lingui/swc-plugin": "^4.0.1",
  "@types/node": "20.1.5",
  "@types/react": "18.2.6",
  "eslint": "8.35.0",
  "eslint-config-next": "12.3.4",
  "typescript": "5.0.4"
}

To reproduce the issue, you can refer to this example repository.

Please note that the repository has two commits. The first commit represents a working setup with outdated dependencies, while the last commit is the one causing the error.

Any assistance or guidance in resolving this issue would be greatly appreciated.

Thank you!

@thekip
Copy link
Collaborator

thekip commented Jun 5, 2023

There is a regression in upstream (next-swc) project: here is PR fixing vercel/next.js#50651

Related issues: swc-project/swc#7470 (comment) and vercel/next.js#36078 (comment)

@thekip thekip closed this as completed Jun 5, 2023
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