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

Error: Module parse failed: Unexpected character '�' (1:1) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. #7

Open
df257 opened this issue Aug 29, 2021 · 2 comments

Comments

@df257
Copy link

df257 commented Aug 29, 2021

好像还要配置loader,不知道该怎么配置?
image

@df257
Copy link
Author

df257 commented Aug 29, 2021

还有import的时候,会有个语法检测错误,需要加个//@ts-ignore
image

@pool611
Copy link

pool611 commented Sep 7, 2021

vue-cli中在chainWebpack中配置loader
config.module
.rule('svga')
.text(/.svga$/)
.use('svga-loader')
.loader('svga-loader')
.end()

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