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

Syntax Error: NonErrorEmittedError: (Emitted value instead of an instance of Error) Error in parsing SVG: Non-whitespace before first tag. #177

Open
dengxp opened this issue Dec 14, 2021 · 1 comment

Comments

@dengxp
Copy link

dengxp commented Dec 14, 2021

error in ./src/assets/logo.svg?inline

Syntax Error: NonErrorEmittedError: (Emitted value instead of an instance of Error) Error in parsing SVG: Non-whitespace before first tag.
Line: 0
Column: 1
Char: m

@ ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader-v16/dist??ref--1-1!./src/layouts/BasicLayout.vue?vue
&type=script&lang=js 12:0-48 19:13-20
@ ./src/layouts/BasicLayout.vue?vue&type=script&lang=js
@ ./src/layouts/BasicLayout.vue
@ ./src/layouts/index.js
@ ./src/config/router.config.js
@ ./src/router/index.js
@ ./src/globalApp.js
@ ./src/main.js
@ multi (webpack)-dev-server/client?http://192.168.2.82:8001&sockPath=/sockjs-node (webpack)/hot/dev-server.js ./src/main.js

vue.config.js config:
const svgRule = config.module.rule('svg')
svgRule.uses.clear()
svgRule
.oneOf('inline')
.resourceQuery(/inline/)
.use('vue-loader')
.loader('vue-loader')
.end()
.use('vue-svg-loader')
.loader('vue-svg-loader')
.end()

module version:
"vue": "^3.2.26",
"vue-svg-loader": "0.17.0-beta.2"

@Aryan3212
Copy link

It would help if you shared the contents of the svg.

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