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

ReferenceError: t is not defined on Next.js 14.1 #14

Open
NicholasG04 opened this issue Feb 3, 2024 · 6 comments
Open

ReferenceError: t is not defined on Next.js 14.1 #14

NicholasG04 opened this issue Feb 3, 2024 · 6 comments

Comments

@NicholasG04
Copy link

Seems to be an issue with jotai-optics on Next.js 14.1. It was working fine in Next.js 14.0. Would be grateful for any advice please

Unhandled Runtime Error
ReferenceError: t is not defined

Call Stack
eval
(app-pages-browser)/./node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/jotai-optics/dist/index.modern.js (19:37)
(app-pages-browser)/./node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/jotai-optics/dist/index.modern.js
file:///workspaces/myworkspace/.next/static/chunks/app/(site)/page.js (237:1)
options.factory
file:///workspaces/myworkspace/.next/static/chunks/webpack.js (716:31)
__webpack_require__
file:///workspaces/myworkspace/.next/static/chunks/webpack.js (37:33)
fn
file:///workspaces/myworkspace/.next/static/chunks/webpack.js (371:21)
eval
(app-pages-browser)/./src/lib/store.ts (11:70)
(app-pages-browser)/./src/lib/store.ts
file:///workspaces/myworkspace/.next/static/chunks/app/(site)/page.js (973:1)
@dai-shi
Copy link
Member

dai-shi commented Feb 4, 2024

Can we get any advice from Next.js team, about what we should do?

Does using v0.3.2 change anything?

@NicholasG04
Copy link
Author

No change of v0.3.2 that I can see. Thanks

@dai-shi
Copy link
Member

dai-shi commented Feb 5, 2024

It shouldn't be jotai-optics only issue. Maybe it happens to many jotai-* packages.

@Cielquan
Copy link

Are you using the @swc-jotai/react-refresh plugin? Then maybe this is related: pmndrs/swc-jotai#24

@NicholasG04
Copy link
Author

Nope, not using SWC

@FinnRG
Copy link

FinnRG commented Feb 26, 2024

Had the same issue. Removing swc-jotai/react-refresh and the .next folder solved it for now.

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

4 participants