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

Plugin broke with Next 13.4.4 #84

Closed
1 task done
EvHaus opened this issue Jun 1, 2023 · 6 comments
Closed
1 task done

Plugin broke with Next 13.4.4 #84

EvHaus opened this issue Jun 1, 2023 · 6 comments
Labels
bug Something isn't working
Milestone

Comments

@EvHaus
Copy link

EvHaus commented Jun 1, 2023

Verify Next.js canary release

  • I verified that the issue exists in the latest Next.js canary release

Describe the bug

After upgrading from Next 13.4.3 to 13.4.4 using next-superjson-plugin now throws the following error during build:

- error ./node_modules/.pnpm/next@13.4.4_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/client/dev/amp-dev.js
Error: Filesystem cache is not enabled, cannot read plugin from phsyical path
- wait compiling...
- error ./node_modules/.pnpm/next@13.4.4_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/client/dev/amp-dev.js
Error: Filesystem cache is not enabled, cannot read plugin from phsyical path

Looks like that error is coming from swc but I'm not sure what changed between 13.4.3 and 13.4.4 that could use that.

Expected behavior

App should still run with next dev

Reproduction link

No response

Version

0.5.8

Config

// @ts-check

/**
 * @type {import('next').NextConfig}
 **/
module.exports = {
	experimental: {
		esmExternals: true,
		swcPlugins: [
			['next-superjson-plugin', {}],
		],
	},
	pageExtensions: ['page.tsx', 'page.ts'],
	reactStrictMode: true,
};


### Additional context

_No response_
@EvHaus EvHaus added the bug Something isn't working label Jun 1, 2023
@kishan-getstarted
Copy link

kishan-getstarted commented Jun 1, 2023

I got the same error yesterday. We are using nx workspace to run the nextjs application here are my configs

const withNx = require('@nx/next/plugins/with-nx');
const path = require('path');
/**
 * @type {import('@nx/next/plugins/with-nx').WithNxOptions}
 **/
const nextConfig = {
  pageExtensions: ['mdx', 'md', 'jsx', 'js', 'tsx', 'ts'],
  experimental: {
    swcPlugins: [["next-superjson-plugin", {}]],
  },
  sassOptions: {
    includePaths: [path.join(__dirname, 'styles')],
  },
  nx: {
    // Set this to true if you would like to to use SVGR
    // See: https://github.com/gregberge/svgr
    svgr: false,
  },
};

module.exports = withNx(nextConfig);

@orionmiz orionmiz pinned this issue Jun 1, 2023
@orionmiz orionmiz added this to the Planned milestone Jun 1, 2023
@Lagyu
Copy link

Lagyu commented Jun 2, 2023

I am experiencing the same error, by running yaarn build.
Removing swcPlugins from nextConfig or reverting next version to 13.4.3 fixed the problem for me.

@tarunfy
Copy link

tarunfy commented Jun 2, 2023

Hey, I got this same issue.
Using: Nextjs 13.4.4

Screenshot 2023-06-02 at 3 07 57 PM

@nekochan0122
Copy link

Same here

image

@orionmiz
Copy link
Collaborator

orionmiz commented Jun 4, 2023

vercel/next.js#50651

This PR will close the issue.

@orionmiz
Copy link
Collaborator

orionmiz commented Jun 8, 2023

Please check out v13.4.5-canary.7

@orionmiz orionmiz closed this as completed Jun 8, 2023
@orionmiz orionmiz unpinned this issue Jul 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants