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 SSR渲染模式下组件样式表类型被识别为text/json的BUG #531

Open
XiaoYiUce opened this issue Sep 6, 2024 · 1 comment

Comments

@XiaoYiUce
Copy link

tdesign 版本

1.9.9

重现链接

No response

重现步骤

现在有引入T-Design组件的A,B两个页面,均为Nuxt3 SSR模式渲染,首先访问A页面再访问B页面,使用浏览器的刷新功能刷新B页面,此时再使用浏览器的后退功能回退到A页面,此时Nuxt会抛出500错误无法动态导入模块,同时Console会抛出70个错误(样式表单 http://localhost:3000/_nuxt/node_modules/.pnpm/[email protected][email protected][email protected]_/node_modules/tdesign-vue-next/es/tabs/style/index.css 未加载,因为它的 MIME 类型 "text/javascript" 不是 "text/css"。)
107a3470-c91a-44b9-9f58-53a820414213

期望结果

正常情况下应该是正常加载样式并返回到A页面

实际结果

实际结果为Nuxt抛出500错误,无法正常加载样式表

框架版本

Nuxt3.13

浏览器版本

Firefox(130.0 )

系统版本

Windows 11 22631.4112

Node版本

v20.12.2

补充说明

No response

@uyarn
Copy link
Collaborator

uyarn commented Oct 15, 2024

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

2 participants