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

nuxt3工程报错:CSSRender is not a function #3506

Closed
mohong opened this issue Aug 13, 2022 · 2 comments
Closed

nuxt3工程报错:CSSRender is not a function #3506

mohong opened this issue Aug 13, 2022 · 2 comments

Comments

@mohong
Copy link

mohong commented Aug 13, 2022

TuSimple/naive-ui version (版本)

2.32.2-beta.0

Vue version (Vue 版本)

3.2.37

Nuxt version(Nuxt版本)

3.0.0-rc.8

Browser and its version (浏览器及其版本)

Chrome(104.0.5112.79)

System and its version (系统及其版本)

MacOS(12.4 (21F79))

Node version (Node 版本)

14.17.3

Reappearance link (重现链接)

https://github.com/mohong/nuxt-app

Reappearance steps (重现步骤)

1、npm run dev模式下可以正常访问;
2、npm run build可以正常打包;
3、npm run preview,访问,浏览器报“CSSRender is not a function”。

Expected results (期望的结果)

npm run build之后可以正常preview。

Actual results (实际的结果)

浏览器报“CSSRender is not a function”。

Remarks (补充说明)

@github-actions github-actions bot added the untriaged need to sort label Aug 13, 2022
@07akioni 07akioni removed the untriaged need to sort label Aug 13, 2022
@cinob
Copy link
Contributor

cinob commented Aug 19, 2022

You can temporarily add 'css-render' and '@css-render/plugin-bem' to the 'transpile'

@mohong
Copy link
Author

mohong commented Aug 19, 2022

You can temporarily add 'css-render' and '@css-render/plugin-bem' to the 'transpile'

It`s works, thanks!

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

3 participants