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

Not working with nextjs 12 #3

Open
tw1t611 opened this issue Dec 3, 2021 · 6 comments · May be fixed by #4
Open

Not working with nextjs 12 #3

tw1t611 opened this issue Dec 3, 2021 · 6 comments · May be fixed by #4

Comments

@tw1t611
Copy link

tw1t611 commented Dec 3, 2021

Hi,

nextjs v12 uses a new compiler, which is not using babel
https://nextjs.org/docs/messages/swc-disabled

Do you plan to upgrade the package to work with swc?

I also tried to make it work with the babel.config.js shown in the docs. It gave me the following error.

error - ./components/store.js
ReferenceError: t is not defined
    at Array.forEach (<anonymous>)
@erzr
Copy link
Owner

erzr commented Dec 6, 2021

Thanks for reporting this, I'll take a look and see what's possible.

@ngmiduc
Copy link

ngmiduc commented Feb 8, 2022

When it will work with next12 - I am curious to test this plugin out!

@Anthonyzou Anthonyzou linked a pull request Feb 16, 2022 that will close this issue
@gablabelle
Copy link

Hello @erzr do you intend to merge @Anthonyzou 's PR?

@erzr
Copy link
Owner

erzr commented Mar 29, 2022

Sorry for the delay here, I'll review this and merge it today. @gablabelle

@gablabelle
Copy link

@erzr sorry to bug you lol ... could you please review & merge the PR? 😉

@gablabelle
Copy link

For those who want to use the patched version by @Anthonyzou in the meantime you can run to add it to your project

yarn add --dev https://github.com/Anthonyzou/next-babel-conditional-ssg-ssr.git\#patch-1

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

Successfully merging a pull request may close this issue.

4 participants