Syntax Error: TypeError: Cannot read properties of undefined (reading 'target')

来源:4-14 业务落地:解析路由表,获取结构化数据

慕瓜6338143

2022-05-15

WAIT Compiling… 17:08:16

Compiling…

ERROR Failed to compile with 1 error 17:08:17

error in ./src/icons/svg/article-create.svg

Syntax Error: TypeError: Cannot read properties of undefined (reading ‘target’)

ERROR in ./src/icons/svg/article-create.svg
Module build failed (from ./node_modules/svg-sprite-loader/lib/loader.js):
TypeError: Cannot read properties of undefined (reading ‘target’)
at configurator (C:\Users\Lok\imooc\node_modules\svg-sprite-loader\lib\configurator.js:17:34)
at Object.loader (C:\Users\Lok\imooc\node_modules\svg-sprite-loader\lib\loader.js:28:18)
@ ./src/icons/svg/ sync nonrecursive .svg$ ./article-create.svg
@ ./src/icons/index.js 5:19-60
@ ./src/main.js 10:0-26 14:0-35 17:0-12

ERROR in ./src/icons/svg/article-ranking.svg
Module build failed (from ./node_modules/svg-sprite-loader/lib/loader.js):
TypeError: Cannot read properties of undefined (reading ‘target’)
at configurator (C:\Users\Lok\imooc\node_modules\svg-sprite-loader\lib\configurator.js:17:34)
at Object.loader (C:\Users\Lok\imooc\node_modules\svg-sprite-loader\lib\loader.js:28:18)
@ ./src/icons/svg/ sync nonrecursive .svg$ ./article-ranking.svg
@ ./src/icons/index.js 5:19-60
@ ./src/main.js 10:0-26 14:0-35 17:0-12

ERROR in ./src/icons/svg/article.svg
Module build failed (from ./node_modules/svg-sprite-loader/lib/loader.js):
TypeError: Cannot read properties of undefined (reading ‘target’)
at configurator (C:\Users\Lok\imooc\node_modules\svg-sprite-loader\lib\configurator.js:17:34)
at Object.loader (C:\Users\Lok\imooc\node_modules\svg-sprite-loader\lib\loader.js:28:18)
@ ./src/icons/svg/ sync nonrecursive .svg$ ./article.svg
@ ./src/icons/index.js 5:19-60
@ ./src/main.js 10:0-26 14:0-35 17:0-12

ERROR in ./src/icons/svg/change-theme.svg
Module build failed (from ./node_modules/svg-sprite-loader/lib/loader.js):
TypeError: Cannot read properties of undefined (reading ‘target’)
at configurator (C:\Users\Lok\imooc\node_modules\svg-sprite-loader\lib\configurator.js:17:34)
at Object.loader (C:\Users\Lok\imooc\node_modules\svg-sprite-loader\lib\loader.js:28:18)
@ ./src/icons/svg/ sync nonrecursive .svg$ ./change-theme.svg
@ ./src/icons/index.js 5:19-60
@ ./src/main.js 10:0-26 14:0-35 17:0-12

ERROR in ./src/icons/svg/dashboard.svg
Module build failed (from ./node_modules/svg-sprite-loader/lib/loader.js):
TypeError: Cannot read properties of undefined (reading ‘target’)
at configurator (C:\Users\Lok\imooc\node_modules\svg-sprite-loader\lib\configurator.js:17:34)
at Object.loader (C:\Users\Lok\imooc\node_modules\svg-sprite-loader\lib\loader.js:28:18)
@ ./src/icons/svg/ sync nonrecursive .svg$ ./dashboard.svg
@ ./src/icons/index.js 5:19-60
@ ./src/main.js 10:0-26 14:0-35 17:0-12

ERROR in ./src/icons/svg/example.svg
Module build failed (from ./node_modules/svg-sprite-loader/lib/loader.js):
TypeError: Cannot read properties of undefined (reading ‘target’)
at configurator (C:\Users\Lok\imooc\node_modules\svg-sprite-loader\lib\configurator.js:17:34)
at Object.loader (C:\Users\Lok\imooc\node_modules\svg-sprite-loader\lib\loader.js:28:18)
@ ./src/icons/svg/ sync nonrecursive .svg$ ./example.svg
@ ./src/icons/index.js 5:19-60
@ ./src/main.js 10:0-26 14:0-35 17:0-12

ERROR in ./src/icons/svg/exit-fullscreen.svg
Module build failed (from ./node_modules/svg-sprite-loader/lib/loader.js):
TypeError: Cannot read properties of undefined (reading ‘target’)
at configurator (C:\Users\Lok\imooc\node_modules\svg-sprite-loader\lib\configurator.js:17:34)
at Object.loader (C:\Users\Lok\imooc\node_modules\svg-sprite-loader\lib\loader.js:28:18)
@ ./src/icons/svg/ sync nonrecursive .svg$ ./exit-fullscreen.svg
@ ./src/icons/index.js 5:19-60
@ ./src/main.js 10:0-26 14:0-35 17:0-12

ERROR in ./src/icons/svg/eye-open.svg
Module build failed (from ./node_modules/svg-sprite-loader/lib/loader.js):
TypeError: Cannot read properties of undefined (reading ‘target’)
at configurator (C:\Users\Lok\imooc\node_modules\svg-sprite-loader\lib\configurator.js:17:34)
at Object.loader (C:\Users\Lok\imooc\node_modules\svg-sprite-loader\lib\loader.js:28:18)
@ ./src/icons/svg/ sync nonrecursive .svg$ ./eye-open.svg
@ ./src/icons/index.js 5:19-60
@ ./src/main.js 10:0-26 14:0-35 17:0-12

ERROR in ./src/icons/svg/eye.svg
Module build failed (from ./node_modules/svg-sprite-loader/lib/loader.js):
TypeError: Cannot read properties of undefined (reading ‘target’)
at configurator (C:\Users\Lok\imooc\node_modules\svg-sprite-loader\lib\configurator.js:17:34)
at Object.loader (C:\Users\Lok\imooc\node_modules\svg-sprite-loader\lib\loader.js:28:18)
@ ./src/icons/svg/ sync nonrecursive .svg$ ./eye.svg
@ ./src/icons/index.js 5:19-60
@ ./src/main.js 10:0-26 14:0-35 17:0-12

ERROR in ./src/icons/svg/fullscreen.svg
Module build failed (from ./node_modules/svg-sprite-loader/lib/loader.js):
TypeError: Cannot read properties of undefined (reading ‘target’)
at configurator (C:\Users\Lok\imooc\node_modules\svg-sprite-loader\lib\configurator.js:17:34)
at Object.loader (C:\Users\Lok\imooc\node_modules\svg-sprite-loader\lib\loader.js:28:18)
@ ./src/icons/svg/ sync nonrecursive .svg$ ./fullscreen.svg
@ ./src/icons/index.js 5:19-60
@ ./src/main.js 10:0-26 14:0-35 17:0-12

ERROR in ./src/icons/svg/guide.svg
Module build failed (from ./node_modules/svg-sprite-loader/lib/loader.js):
TypeError: Cannot read properties of undefined (reading ‘target’)
at configurator (C:\Users\Lok\imooc\node_modules\svg-sprite-loader\lib\configurator.js:17:34)
at Object.loader (C:\Users\Lok\imooc\node_modules\svg-sprite-loader\lib\loader.js:28:18)
@ ./src/icons/svg/ sync nonrecursive .svg$ ./guide.svg
@ ./src/icons/index.js 5:19-60
@ ./src/main.js 10:0-26 14:0-35 17:0-12

ERROR in ./src/icons/svg/hamburger-closed.svg
Module build failed (from ./node_modules/svg-sprite-loader/lib/loader.js):
TypeError: Cannot read properties of undefined (reading ‘target’)
at configurator (C:\Users\Lok\imooc\node_modules\svg-sprite-loader\lib\configurator.js:17:34)
at Object.loader (C:\Users\Lok\imooc\node_modules\svg-sprite-loader\lib\loader.js:28:18)
@ ./src/icons/svg/ sync nonrecursive .svg$ ./hamburger-closed.svg
@ ./src/icons/index.js 5:19-60
@ ./src/main.js 10:0-26 14:0-35 17:0-12

ERROR in ./src/icons/svg/hamburger-opened.svg
Module build failed (from ./node_modules/svg-sprite-loader/lib/loader.js):
TypeError: Cannot read properties of undefined (reading ‘target’)
at configurator (C:\Users\Lok\imooc\node_modules\svg-sprite-loader\lib\configurator.js:17:34)
at Object.loader (C:\Users\Lok\imooc\node_modules\svg-sprite-loader\lib\loader.js:28:18)
@ ./src/icons/svg/ sync nonrecursive .svg$ ./hamburger-opened.svg
@ ./src/icons/index.js 5:19-60
@ ./src/main.js 10:0-26 14:0-35 17:0-12

ERROR in ./src/icons/svg/international.svg
Module build failed (from ./node_modules/svg-sprite-loader/lib/loader.js):
TypeError: Cannot read properties of undefined (reading ‘target’)
at configurator (C:\Users\Lok\imooc\node_modules\svg-sprite-loader\lib\configurator.js:17:34)
at Object.loader (C:\Users\Lok\imooc\node_modules\svg-sprite-loader\lib\loader.js:28:18)
@ ./src/icons/svg/ sync nonrecursive .svg$ ./international.svg
@ ./src/icons/index.js 5:19-60
@ ./src/main.js 10:0-26 14:0-35 17:0-12

ERROR in ./src/icons/svg/introduce.svg
Module build failed (from ./node_modules/svg-sprite-loader/lib/loader.js):
TypeError: Cannot read properties of undefined (reading ‘target’)
at configurator (C:\Users\Lok\imooc\node_modules\svg-sprite-loader\lib\configurator.js:17:34)
at Object.loader (C:\Users\Lok\imooc\node_modules\svg-sprite-loader\lib\loader.js:28:18)
@ ./src/icons/svg/ sync nonrecursive .svg$ ./introduce.svg
@ ./src/icons/index.js 5:19-60
@ ./src/main.js 10:0-26 14:0-35 17:0-12

ERROR in ./src/icons/svg/language.svg
Module build failed (from ./node_modules/svg-sprite-loader/lib/loader.js):
TypeError: Cannot read properties of undefined (reading ‘target’)
at configurator (C:\Users\Lok\imooc\node_modules\svg-sprite-loader\lib\configurator.js:17:34)
at Object.loader (C:\Users\Lok\imooc\node_modules\svg-sprite-loader\lib\loader.js:28:18)
@ ./src/icons/svg/ sync nonrecursive .svg$ ./language.svg
@ ./src/icons/index.js 5:19-60
@ ./src/main.js 10:0-26 14:0-35 17:0-12

ERROR in ./src/icons/svg/link.svg
Module build failed (from ./node_modules/svg-sprite-loader/lib/loader.js):
TypeError: Cannot read properties of undefined (reading ‘target’)
at configurator (C:\Users\Lok\imooc\node_modules\svg-sprite-loader\lib\configurator.js:17:34)
at Object.loader (C:\Users\Lok\imooc\node_modules\svg-sprite-loader\lib\loader.js:28:18)
@ ./src/icons/svg/ sync nonrecursive .svg$ ./link.svg
@ ./src/icons/index.js 5:19-60
@ ./src/main.js 10:0-26 14:0-35 17:0-12

ERROR in ./src/icons/svg/nested.svg
Module build failed (from ./node_modules/svg-sprite-loader/lib/loader.js):
TypeError: Cannot read properties of undefined (reading ‘target’)
at configurator (C:\Users\Lok\imooc\node_modules\svg-sprite-loader\lib\configurator.js:17:34)
at Object.loader (C:\Users\Lok\imooc\node_modules\svg-sprite-loader\lib\loader.js:28:18)
@ ./src/icons/svg/ sync nonrecursive .svg$ ./nested.svg
@ ./src/icons/index.js 5:19-60
@ ./src/main.js 10:0-26 14:0-35 17:0-12

ERROR in ./src/icons/svg/password.svg
Module build failed (from ./node_modules/svg-sprite-loader/lib/loader.js):
TypeError: Cannot read properties of undefined (reading ‘target’)
at configurator (C:\Users\Lok\imooc\node_modules\svg-sprite-loader\lib\configurator.js:17:34)
at Object.loader (C:\Users\Lok\imooc\node_modules\svg-sprite-loader\lib\loader.js:28:18)
@ ./src/icons/svg/ sync nonrecursive .svg$ ./password.svg
@ ./src/icons/index.js 5:19-60
@ ./src/main.js 10:0-26 14:0-35 17:0-12

ERROR in ./src/icons/svg/permission.svg
Module build failed (from ./node_modules/svg-sprite-loader/lib/loader.js):
TypeError: Cannot read properties of undefined (reading ‘target’)
at configurator (C:\Users\Lok\imooc\node_modules\svg-sprite-loader\lib\configurator.js:17:34)
at Object.loader (C:\Users\Lok\imooc\node_modules\svg-sprite-loader\lib\loader.js:28:18)
@ ./src/icons/svg/ sync nonrecursive .svg$ ./permission.svg
@ ./src/icons/index.js 5:19-60
@ ./src/main.js 10:0-26 14:0-35 17:0-12

ERROR in ./src/icons/svg/personnel-info.svg
Module build failed (from ./node_modules/svg-sprite-loader/lib/loader.js):
TypeError: Cannot read properties of undefined (reading ‘target’)
at configurator (C:\Users\Lok\imooc\node_modules\svg-sprite-loader\lib\configurator.js:17:34)
at Object.loader (C:\Users\Lok\imooc\node_modules\svg-sprite-loader\lib\loader.js:28:18)
@ ./src/icons/svg/ sync nonrecursive .svg$ ./personnel-info.svg
@ ./src/icons/index.js 5:19-60
@ ./src/main.js 10:0-26 14:0-35 17:0-12

ERROR in ./src/icons/svg/personnel-manage.svg
Module build failed (from ./node_modules/svg-sprite-loader/lib/loader.js):
TypeError: Cannot read properties of undefined (reading ‘target’)
at configurator (C:\Users\Lok\imooc\node_modules\svg-sprite-loader\lib\configurator.js:17:34)
at Object.loader (C:\Users\Lok\imooc\node_modules\svg-sprite-loader\lib\loader.js:28:18)
@ ./src/icons/svg/ sync nonrecursive .svg$ ./personnel-manage.svg
@ ./src/icons/index.js 5:19-60
@ ./src/main.js 10:0-26 14:0-35 17:0-12

ERROR in ./src/icons/svg/personnel.svg
Module build failed (from ./node_modules/svg-sprite-loader/lib/loader.js):
TypeError: Cannot read properties of undefined (reading ‘target’)
at configurator (C:\Users\Lok\imooc\node_modules\svg-sprite-loader\lib\configurator.js:17:34)
at Object.loader (C:\Users\Lok\imooc\node_modules\svg-sprite-loader\lib\loader.js:28:18)
@ ./src/icons/svg/ sync nonrecursive .svg$ ./personnel.svg
@ ./src/icons/index.js 5:19-60
@ ./src/main.js 10:0-26 14:0-35 17:0-12

ERROR in ./src/icons/svg/reward.svg
Module build failed (from ./node_modules/svg-sprite-loader/lib/loader.js):
TypeError: Cannot read properties of undefined (reading ‘target’)
at configurator (C:\Users\Lok\imooc\node_modules\svg-sprite-loader\lib\configurator.js:17:34)
at Object.loader (C:\Users\Lok\imooc\node_modules\svg-sprite-loader\lib\loader.js:28:18)
@ ./src/icons/svg/ sync nonrecursive .svg$ ./reward.svg
@ ./src/icons/index.js 5:19-60
@ ./src/main.js 10:0-26 14:0-35 17:0-12

ERROR in ./src/icons/svg/role.svg
Module build failed (from ./node_modules/svg-sprite-loader/lib/loader.js):
TypeError: Cannot read properties of undefined (reading ‘target’)
at configurator (C:\Users\Lok\imooc\node_modules\svg-sprite-loader\lib\configurator.js:17:34)
at Object.loader (C:\Users\Lok\imooc\node_modules\svg-sprite-loader\lib\loader.js:28:18)
@ ./src/icons/svg/ sync nonrecursive .svg$ ./role.svg
@ ./src/icons/index.js 5:19-60
@ ./src/main.js 10:0-26 14:0-35 17:0-12

ERROR in ./src/icons/svg/search.svg
Module build failed (from ./node_modules/svg-sprite-loader/lib/loader.js):
TypeError: Cannot read properties of undefined (reading ‘target’)
at configurator (C:\Users\Lok\imooc\node_modules\svg-sprite-loader\lib\configurator.js:17:34)
at Object.loader (C:\Users\Lok\imooc\node_modules\svg-sprite-loader\lib\loader.js:28:18)
@ ./src/icons/svg/ sync nonrecursive .svg$ ./search.svg
@ ./src/icons/index.js 5:19-60
@ ./src/main.js 10:0-26 14:0-35 17:0-12

ERROR in ./src/icons/svg/table.svg
Module build failed (from ./node_modules/svg-sprite-loader/lib/loader.js):
TypeError: Cannot read properties of undefined (reading ‘target’)
at configurator (C:\Users\Lok\imooc\node_modules\svg-sprite-loader\lib\configurator.js:17:34)
at Object.loader (C:\Users\Lok\imooc\node_modules\svg-sprite-loader\lib\loader.js:28:18)
@ ./src/icons/svg/ sync nonrecursive .svg$ ./table.svg
@ ./src/icons/index.js 5:19-60
@ ./src/main.js 10:0-26 14:0-35 17:0-12

ERROR in ./src/icons/svg/tree.svg
Module build failed (from ./node_modules/svg-sprite-loader/lib/loader.js):
TypeError: Cannot read properties of undefined (reading ‘target’)
at configurator (C:\Users\Lok\imooc\node_modules\svg-sprite-loader\lib\configurator.js:17:34)
at Object.loader (C:\Users\Lok\imooc\node_modules\svg-sprite-loader\lib\loader.js:28:18)
@ ./src/icons/svg/ sync nonrecursive .svg$ ./tree.svg
@ ./src/icons/index.js 5:19-60
@ ./src/main.js 10:0-26 14:0-35 17:0-12

ERROR in ./src/icons/svg/user.svg
Module build failed (from ./node_modules/svg-sprite-loader/lib/loader.js):
TypeError: Cannot read properties of undefined (reading ‘target’)
at configurator (C:\Users\Lok\imooc\node_modules\svg-sprite-loader\lib\configurator.js:17:34)
at Object.loader (C:\Users\Lok\imooc\node_modules\svg-sprite-loader\lib\loader.js:28:18)
@ ./src/icons/svg/ sync nonrecursive .svg$ ./user.svg
@ ./src/icons/index.js 5:19-60
@ ./src/main.js 10:0-26 14:0-35 17:0-12

webpack compiled with 29 errors

写回答

1回答

Sunday

2022-05-15

你好

这个错误其实比较简单,就是 target 是 undefined 。

0
2
XueTr
请问老师这个是怎么解决?
2023-01-15
共2条回复

基于Vue3新标准,打造后台综合解决方案

基于Vue3重写Vue-element-admin,打造后台前端综合解决方案

1941 学习 · 1687 问题

查看课程