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: defaultStyleFunctionMapping is not defined #2930

Closed
oalexdoda opened this issue Oct 27, 2022 · 3 comments
Closed

ReferenceError: defaultStyleFunctionMapping is not defined #2930

oalexdoda opened this issue Oct 27, 2022 · 3 comments

Comments

@oalexdoda
Copy link

Current behavior:

When using emotion-js (i.e via MUI's library / Material UI) with Next.js 13 + Turbopack, the following error is thrown:

Here's a thread between a few devs having the same issue:
vercel/turborepo#2312 (comment)

To reproduce:

Next.js 13 + MUI + Emotion + dev --turbo - error gets thrown on page load. Without the app directory in v13, just regular pages.

Expected behavior:

Shouldn't break.

Environment information:

{
	"name": "example",
	"version": "0.1.0",
	"private": true,
	"scripts": {
		"dev": "next dev",
		"build": "next build",
		"start": "next start",
		"lint": "next lint"
	},
	"dependencies": {
		"@emotion/react": "^11.10.5",
		"@emotion/styled": "^11.10.5",
		"@mui/material": "^5.10.11",
		"next": "13.0.0",
		"react": "18.2.0",
		"react-dom": "18.2.0"
	},
	"devDependencies": {
		"eslint": "8.26.0",
		"eslint-config-next": "13.0.0",
		"prettier": "^2.7.1",
		"typescript": "^4.8.4"
	}
}
@Andarist
Copy link
Member

We do not have/use function named like this - it cant’t be a problem with Emotion

@oalexdoda
Copy link
Author

Opened an issue with MUI too: mui/material-ui#34910 - maybe it's a dependency inside Emotion or something?

@mnajdova
Copy link
Contributor

mnajdova commented Nov 1, 2022

It's not related to emotion, it complains about a function on MUI's side. @Andarist feel free to close the issue on emotion's side.

@Andarist Andarist closed this as completed Nov 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants