...npm run build 时发生Cannot read properties of undefined (reading 'sprite')
bug 重现
期望结果
精简的期望描述。
截图
有截图就是最好的。
软件环境
操作系统及版本: windows10
Node及版本: node v16.15.1 nej 1.7.8
浏览器及版本:
其他信息
其他信息可以填这里。
nei@1.0.1 nej
nej build ./deploy/release.conf -m online -l info
[I] 2022-06-10 17:35:24.334 - node version is v16.15.1, toolkit version is 1.7.8
[I] 2022-06-10 17:35:24.338 - parse config file D:/@@Learner/hupun/NEI/nei/deploy/release.conf
[D] 2022-06-10 17:35:24.344 - config result -> {"DIR_CONFIG":"D:/@@Learner/hupun/NEI/nei/deploy/","DIR_WEBROOT":"D:/@@Learner/hupun/NEI/nei/public/","DIR_SOURCE":"D:/@@Learner/hupun/NEI/nei/public/src/module/","DIR_SOURCE_SUB":["D:/@@Learner/hupun/NEI/nei/public/src/module/layout/"],"DIR_OUTPUT":"D:/@@Learner/hupun/NEI/nei/public/m/","DIR_SOURCE_TP":"D:/@@Learner/hupun/NEI/nei/view/","DIR_OUTPUT_TP":"D:/@@Learner/hupun/NEI/nei/template/","DIR_OUTPUT_STATIC":"D:/@@Learner/hupun/NEI/nei/public/r/","DIR_STATIC":"D:/@@Learner/hupun/NEI/nei/public/res/","ALIAS_MATCH":{},"ALIAS_DICTIONARY":{},"DM_STATIC":["/"],"DM_STATIC_CS":["/"],"DM_STATIC_JS":["/"],"DM_STATIC_RS":["/"],"FILE_FILTER":{},"FILE_CHARSET":"utf-8","VERSIONMODE":"[FILENAME][VERSION]","VERSION_STATIC":true,"VERSION_STATIC_MODE":0,"CORE_MERGE_FLAG":0,"CORE_NOPARSE_FLAG":3,"WRP_INLINE_SOURCE":"%s","CPRS_FLAG":0,"CPRS_KEEP_COMMENT":false,"NEJ_CONFIG":{},"NEJ_REGULAR":"regularjs","NEJ_PLATFORM":"","NEJ_PROCESSOR":{},"NEJ_INJECTOR":"I$","NEJ_MODULE_ROOT":"/","NEJ_MODULE_VERSION":0,"NEI_PROJECT_ID":0,"OPT_IMAGE_FLAG":false,"OPT_IMAGE_QUALITY":100,"OPT_IMAGE_BASE64":0,"MANIFEST_OUTPUT":"D:/@@Learner/hupun/NEI/nei/public/cache.manifest","MANIFEST_TEMPLATE":"CACHE MANIFEST\n#VERSION = #\n\nCACHE:\n#\n\nNETWORK:\n*\n\nFALLBACK:\n","OBF_LEVEL":0,"OBF_NAME_BAGS":"D:/@@Learner/hupun/NEI/nei/deploy/names.json","OBF_COMPATIBLE":true,"DIR_SOURCE_MAP":"D:/@@Learner/hupun/NEI/nei/public/r/s/","OBF_SOURCE_MAP":true,"OBF_MAX_CS_INLINE_SIZE":100,"OBF_MAX_JS_INLINE_SIZE":100,"OBF_CORE_INLINE_FLAG":0,"OBF_DROP_CONSOLE":false,"CORE_FREQUENCY_JS":2,"CORE_FREQUENCY_CS":2,"CORE_IGNORE_ENTRY":false,"WRP_SCRIPT_SOURCE":"%s","WRP_INLINE_CS":"<textarea name=\"css\">%s","WRP_EXLINE_CS":"<textarea name=\"css\" data-src=\"%s\">","WRP_INLINE_JS":"<textarea name=\"js\">%s","WRP_EXLINE_JS":"<textarea name=\"js\" data-src=\"%s\">","WRP_INLINE_TP":"<textarea id=\"%s\" name=\"%s\">%s","WRP_INLINE_STYLE":"<style type=\"text/css\">\n%s\n","WRP_EXLINE_STYLE":"<link rel=\"stylesheet\" href=\"%s\"/>","WRP_INLINE_SCRIPT":"","WRP_EXLINE_SCRIPT":"<script src=\"%s\">","WCS_UPLOAD_URL":"","WCS_UPLOAD_TOKEN":"","WCS_APP_ID":"","WCS_NATIVE_ID":"","WCS_FILE_INCLUDE":"","WCS_FILE_EXCLUDE":"","WCS_CONFIG_FILE":"D:/@@Learner/hupun/NEI/nei/deploy/cache.json","DATA_LOG_API":"","X_AUTO_EXLINK_PATH":false,"X_AUTO_EXLINK_SCRIPT":false,"X_RELEASE_MODE":"online","X_LOGGER_LEVEL":"ALL","X_LOGGER_FILE":"D:/@@Learner/hupun/NEI/nei/deploy/20220610173524344.log","":""}
[D] 2022-06-10 17:35:24.345 - overwrite X_RELEASE_MODE to online
[D] 2022-06-10 17:35:24.345 - overwrite X_LOGGER_LEVEL to INFO
[I] 2022-06-10 17:35:24.345 - cache nej config
[I] 2022-06-10 17:35:24.346 - prepare merge config
[I] 2022-06-10 17:35:24.348 - dump template files
[I] 2022-06-10 17:35:24.427 - dump html files
[I] 2022-06-10 17:35:24.428 - parse input files
[W] 2022-06-10 17:35:25.733 - D:/@@Learner/hupun/NEI/nei/public/src/lib/editor-md/images/loading.gif is not in DIR_STATIC[D:/@@Learner/hupun/NEI/nei/public/src/lib/editor-md/css/editormd.css]
[W] 2022-06-10 17:35:25.734 - D:/@@Learner/hupun/NEI/nei/public/src/lib/editor-md/images/loading@2x.gif is not in DIR_STATIC[D:/@@Learner/hupun/NEI/nei/public/src/lib/editor-md/css/editormd.css]
[W] 2022-06-10 17:35:25.735 - D:/@@Learner/hupun/NEI/nei/public/src/lib/editor-md/images/loading@3x.gif is not in DIR_STATIC[D:/@@Learner/hupun/NEI/nei/public/src/lib/editor-md/css/editormd.css]
[W] 2022-06-10 17:35:25.736 - D:/@@Learner/hupun/NEI/nei/public/src/lib/editor-md/fonts/fontawesome-webfont.eot?v=4.3.0 is not in DIR_STATIC[D:/@@Learner/hupun/NEI/nei/public/src/lib/editor-md/css/editormd.css]
[W] 2022-06-10 17:35:25.737 - D:/@@Learner/hupun/NEI/nei/public/src/lib/editor-md/fonts/fontawesome-webfont.eot?#iefix&v=4.3.0 is not in DIR_STATIC[D:/@@Learner/hupun/NEI/nei/public/src/lib/editor-md/css/editormd.css]
[W] 2022-06-10 17:35:25.738 - D:/@@Learner/hupun/NEI/nei/public/src/lib/editor-md/fonts/fontawesome-webfont.woff2?v=4.3.0 is not in DIR_STATIC[D:/@@Learner/hupun/NEI/nei/public/src/lib/editor-md/css/editormd.css]
[W] 2022-06-10 17:35:25.739 - D:/@@Learner/hupun/NEI/nei/public/src/lib/editor-md/fonts/fontawesome-webfont.woff?v=4.3.0 is not in DIR_STATIC[D:/@@Learner/hupun/NEI/nei/public/src/lib/editor-md/css/editormd.css]
[W] 2022-06-10 17:35:25.741 - D:/@@Learner/hupun/NEI/nei/public/src/lib/editor-md/fonts/fontawesome-webfont.ttf?v=4.3.0 is not in DIR_STATIC[D:/@@Learner/hupun/NEI/nei/public/src/lib/editor-md/css/editormd.css]
[W] 2022-06-10 17:35:25.741 - D:/@@Learner/hupun/NEI/nei/public/src/lib/editor-md/fonts/fontawesome-webfont.svg?v=4.3.0#fontawesomeregular is not in DIR_STATIC[D:/@@Learner/hupun/NEI/nei/public/src/lib/editor-md/css/editormd.css]
[W] 2022-06-10 17:35:25.742 - D:/@@Learner/hupun/NEI/nei/public/src/lib/editor-md/fonts/editormd-logo.eot?-5y8q6h is not in DIR_STATIC[D:/@@Learner/hupun/NEI/nei/public/src/lib/editor-md/css/editormd.css]
[W] 2022-06-10 17:35:25.743 - resource D:/@@Learner/hupun/NEI/nei/public/src/lib/editor-md/css/.../fonts/editormd-logo.eot in file D:/@@Learner/hupun/NEI/nei/public/src/lib/editor-md/css/editormd.css not exist
[W] 2022-06-10 17:35:25.743 - D:/@@Learner/hupun/NEI/nei/public/src/lib/editor-md/fonts/editormd-logo.woff?-5y8q6h is not in DIR_STATIC[D:/@@Learner/hupun/NEI/nei/public/src/lib/editor-md/css/editormd.css]
[W] 2022-06-10 17:35:25.744 - D:/@@Learner/hupun/NEI/nei/public/src/lib/editor-md/fonts/editormd-logo.ttf?-5y8q6h is not in DIR_STATIC[D:/@@Learner/hupun/NEI/nei/public/src/lib/editor-md/css/editormd.css]
[W] 2022-06-10 17:35:25.744 - D:/@@Learner/hupun/NEI/nei/public/src/lib/editor-md/fonts/editormd-logo.svg?-5y8q6h#icomoon is not in DIR_STATIC[D:/@@Learner/hupun/NEI/nei/public/src/lib/editor-md/css/editormd.css]
[I] 2022-06-10 17:35:27.134 - merge core list
[I] 2022-06-10 17:35:27.182 - sort input files by module dependency
[I] 2022-06-10 17:35:27.188 - split core from input files
[I] 2022-06-10 17:35:27.236 - minify script
[I] 2022-06-10 17:35:32.599 - embed resources to input files
[I] 2022-06-10 17:35:35.827 - prepare sprite images dimension
[I] 2022-06-10 17:35:37.030 - layout sprite images
[I] 2022-06-10 17:35:37.034 - generate sprite image sprite
[I] 2022-06-10 17:35:37.046 - output sprite image to D:/@@Learner/hupun/NEI/nei/public/res/sprite_a499c0aa4797bef857d42eef8a156217.png
[I] 2022-06-10 17:35:37.123 - output files
TypeError: Cannot read properties of undefined (reading 'sprite')
at Klass.URLHANDLER.sp (D:\tools\npm\node_modules\node_global\node_modules\nej\lib\meta\html.js:80:40)
at D:\tools\npm\node_modules\node_global\node_modules\nej\lib\meta\html.js:861:29
at D:\tools\npm\node_modules\node_global\node_modules\nej\lib\util\path.js:156:16
at String.replace ()
at Object.exports.unwrapURI (D:\tools\npm\node_modules\node_global\node_modules\nej\lib\util\path.js:155:20)
at Klass.pro._formatContent (D:\tools\npm\node_modules\node_global\node_modules\nej\lib\meta\html.js:857:18)
at Klass.pro._formatRSURI (D:\tools\npm\node_modules\node_global\node_modules\nej\lib\meta\html.js:814:24)
at Klass.cs (D:\tools\npm\node_modules\node_global\node_modules\nej\lib\meta\html.js:94:21)
at D:\tools\npm\node_modules\node_global\node_modules\nej\lib\meta\html.js:861:29
at D:\tools\npm\node_modules\node_global\node_modules\nej\lib\util\path.js:156:16
Bug 描述 精简的 Bug 描述。
重现步骤
期望结果 精简的期望描述。
截图 有截图就是最好的。
软件环境
其他信息 其他信息可以填这里。
[I] 2022-06-10 17:35:24.334 - node version is v16.15.1, toolkit version is 1.7.8 [I] 2022-06-10 17:35:24.338 - parse config file D:/@@Learner/hupun/NEI/nei/deploy/release.conf [D] 2022-06-10 17:35:24.344 - config result -> {"DIR_CONFIG":"D:/@@Learner/hupun/NEI/nei/deploy/","DIR_WEBROOT":"D:/@@Learner/hupun/NEI/nei/public/","DIR_SOURCE":"D:/@@Learner/hupun/NEI/nei/public/src/module/","DIR_SOURCE_SUB":["D:/@@Learner/hupun/NEI/nei/public/src/module/layout/"],"DIR_OUTPUT":"D:/@@Learner/hupun/NEI/nei/public/m/","DIR_SOURCE_TP":"D:/@@Learner/hupun/NEI/nei/view/","DIR_OUTPUT_TP":"D:/@@Learner/hupun/NEI/nei/template/","DIR_OUTPUT_STATIC":"D:/@@Learner/hupun/NEI/nei/public/r/","DIR_STATIC":"D:/@@Learner/hupun/NEI/nei/public/res/","ALIAS_MATCH":{},"ALIAS_DICTIONARY":{},"DM_STATIC":["/"],"DM_STATIC_CS":["/"],"DM_STATIC_JS":["/"],"DM_STATIC_RS":["/"],"FILE_FILTER":{},"FILE_CHARSET":"utf-8","VERSIONMODE":"[FILENAME][VERSION]","VERSION_STATIC":true,"VERSION_STATIC_MODE":0,"CORE_MERGE_FLAG":0,"CORE_NOPARSE_FLAG":3,"WRP_INLINE_SOURCE":"%s","CPRS_FLAG":0,"CPRS_KEEP_COMMENT":false,"NEJ_CONFIG":{},"NEJ_REGULAR":"regularjs","NEJ_PLATFORM":"","NEJ_PROCESSOR":{},"NEJ_INJECTOR":"I$","NEJ_MODULE_ROOT":"/","NEJ_MODULE_VERSION":0,"NEI_PROJECT_ID":0,"OPT_IMAGE_FLAG":false,"OPT_IMAGE_QUALITY":100,"OPT_IMAGE_BASE64":0,"MANIFEST_OUTPUT":"D:/@@Learner/hupun/NEI/nei/public/cache.manifest","MANIFEST_TEMPLATE":"CACHE MANIFEST\n#VERSION = #\n\nCACHE:\n#\n\nNETWORK:\n*\n\nFALLBACK:\n","OBF_LEVEL":0,"OBF_NAME_BAGS":"D:/@@Learner/hupun/NEI/nei/deploy/names.json","OBF_COMPATIBLE":true,"DIR_SOURCE_MAP":"D:/@@Learner/hupun/NEI/nei/public/r/s/","OBF_SOURCE_MAP":true,"OBF_MAX_CS_INLINE_SIZE":100,"OBF_MAX_JS_INLINE_SIZE":100,"OBF_CORE_INLINE_FLAG":0,"OBF_DROP_CONSOLE":false,"CORE_FREQUENCY_JS":2,"CORE_FREQUENCY_CS":2,"CORE_IGNORE_ENTRY":false,"WRP_SCRIPT_SOURCE":"%s","WRP_INLINE_CS":"<textarea name=\"css\">%s","WRP_EXLINE_CS":"<textarea name=\"css\" data-src=\"%s\">","WRP_INLINE_JS":"<textarea name=\"js\">%s","WRP_EXLINE_JS":"<textarea name=\"js\" data-src=\"%s\">","WRP_INLINE_TP":"<textarea id=\"%s\" name=\"%s\">%s","WRP_INLINE_STYLE":"<style type=\"text/css\">\n%s\n","WRP_EXLINE_STYLE":"<link rel=\"stylesheet\" href=\"%s\"/>","WRP_INLINE_SCRIPT":"","WRP_EXLINE_SCRIPT":"<script src=\"%s\">","WCS_UPLOAD_URL":"","WCS_UPLOAD_TOKEN":"","WCS_APP_ID":"","WCS_NATIVE_ID":"","WCS_FILE_INCLUDE":"","WCS_FILE_EXCLUDE":"","WCS_CONFIG_FILE":"D:/@@Learner/hupun/NEI/nei/deploy/cache.json","DATA_LOG_API":"","X_AUTO_EXLINK_PATH":false,"X_AUTO_EXLINK_SCRIPT":false,"X_RELEASE_MODE":"online","X_LOGGER_LEVEL":"ALL","X_LOGGER_FILE":"D:/@@Learner/hupun/NEI/nei/deploy/20220610173524344.log","":""}
[D] 2022-06-10 17:35:24.345 - overwrite X_RELEASE_MODE to online
[D] 2022-06-10 17:35:24.345 - overwrite X_LOGGER_LEVEL to INFO
[I] 2022-06-10 17:35:24.345 - cache nej config
[I] 2022-06-10 17:35:24.346 - prepare merge config
[I] 2022-06-10 17:35:24.348 - dump template files
[I] 2022-06-10 17:35:24.427 - dump html files
[I] 2022-06-10 17:35:24.428 - parse input files
[W] 2022-06-10 17:35:25.733 - D:/@@Learner/hupun/NEI/nei/public/src/lib/editor-md/images/loading.gif is not in DIR_STATIC[D:/@@Learner/hupun/NEI/nei/public/src/lib/editor-md/css/editormd.css]
[W] 2022-06-10 17:35:25.734 - D:/@@Learner/hupun/NEI/nei/public/src/lib/editor-md/images/loading@2x.gif is not in DIR_STATIC[D:/@@Learner/hupun/NEI/nei/public/src/lib/editor-md/css/editormd.css]
[W] 2022-06-10 17:35:25.735 - D:/@@Learner/hupun/NEI/nei/public/src/lib/editor-md/images/loading@3x.gif is not in DIR_STATIC[D:/@@Learner/hupun/NEI/nei/public/src/lib/editor-md/css/editormd.css]
[W] 2022-06-10 17:35:25.736 - D:/@@Learner/hupun/NEI/nei/public/src/lib/editor-md/fonts/fontawesome-webfont.eot?v=4.3.0 is not in DIR_STATIC[D:/@@Learner/hupun/NEI/nei/public/src/lib/editor-md/css/editormd.css]
[W] 2022-06-10 17:35:25.737 - D:/@@Learner/hupun/NEI/nei/public/src/lib/editor-md/fonts/fontawesome-webfont.eot?#iefix&v=4.3.0 is not in DIR_STATIC[D:/@@Learner/hupun/NEI/nei/public/src/lib/editor-md/css/editormd.css]
[W] 2022-06-10 17:35:25.738 - D:/@@Learner/hupun/NEI/nei/public/src/lib/editor-md/fonts/fontawesome-webfont.woff2?v=4.3.0 is not in DIR_STATIC[D:/@@Learner/hupun/NEI/nei/public/src/lib/editor-md/css/editormd.css]
[W] 2022-06-10 17:35:25.739 - D:/@@Learner/hupun/NEI/nei/public/src/lib/editor-md/fonts/fontawesome-webfont.woff?v=4.3.0 is not in DIR_STATIC[D:/@@Learner/hupun/NEI/nei/public/src/lib/editor-md/css/editormd.css]
[W] 2022-06-10 17:35:25.741 - D:/@@Learner/hupun/NEI/nei/public/src/lib/editor-md/fonts/fontawesome-webfont.ttf?v=4.3.0 is not in DIR_STATIC[D:/@@Learner/hupun/NEI/nei/public/src/lib/editor-md/css/editormd.css]
[W] 2022-06-10 17:35:25.741 - D:/@@Learner/hupun/NEI/nei/public/src/lib/editor-md/fonts/fontawesome-webfont.svg?v=4.3.0#fontawesomeregular is not in DIR_STATIC[D:/@@Learner/hupun/NEI/nei/public/src/lib/editor-md/css/editormd.css]
[W] 2022-06-10 17:35:25.742 - D:/@@Learner/hupun/NEI/nei/public/src/lib/editor-md/fonts/editormd-logo.eot?-5y8q6h is not in DIR_STATIC[D:/@@Learner/hupun/NEI/nei/public/src/lib/editor-md/css/editormd.css]
[W] 2022-06-10 17:35:25.743 - resource D:/@@Learner/hupun/NEI/nei/public/src/lib/editor-md/css/.../fonts/editormd-logo.eot in file D:/@@Learner/hupun/NEI/nei/public/src/lib/editor-md/css/editormd.css not exist
[W] 2022-06-10 17:35:25.743 - D:/@@Learner/hupun/NEI/nei/public/src/lib/editor-md/fonts/editormd-logo.woff?-5y8q6h is not in DIR_STATIC[D:/@@Learner/hupun/NEI/nei/public/src/lib/editor-md/css/editormd.css]
[W] 2022-06-10 17:35:25.744 - D:/@@Learner/hupun/NEI/nei/public/src/lib/editor-md/fonts/editormd-logo.ttf?-5y8q6h is not in DIR_STATIC[D:/@@Learner/hupun/NEI/nei/public/src/lib/editor-md/css/editormd.css]
[W] 2022-06-10 17:35:25.744 - D:/@@Learner/hupun/NEI/nei/public/src/lib/editor-md/fonts/editormd-logo.svg?-5y8q6h#icomoon is not in DIR_STATIC[D:/@@Learner/hupun/NEI/nei/public/src/lib/editor-md/css/editormd.css]
[I] 2022-06-10 17:35:27.134 - merge core list
[I] 2022-06-10 17:35:27.182 - sort input files by module dependency
[I] 2022-06-10 17:35:27.188 - split core from input files
[I] 2022-06-10 17:35:27.236 - minify script
[I] 2022-06-10 17:35:32.599 - embed resources to input files
[I] 2022-06-10 17:35:35.827 - prepare sprite images dimension
[I] 2022-06-10 17:35:37.030 - layout sprite images
[I] 2022-06-10 17:35:37.034 - generate sprite image sprite
[I] 2022-06-10 17:35:37.046 - output sprite image to D:/@@Learner/hupun/NEI/nei/public/res/sprite_a499c0aa4797bef857d42eef8a156217.png
[I] 2022-06-10 17:35:37.123 - output files
TypeError: Cannot read properties of undefined (reading 'sprite')
at Klass.URLHANDLER.sp (D:\tools\npm\node_modules\node_global\node_modules\nej\lib\meta\html.js:80:40)
at D:\tools\npm\node_modules\node_global\node_modules\nej\lib\meta\html.js:861:29
at D:\tools\npm\node_modules\node_global\node_modules\nej\lib\util\path.js:156:16
at String.replace ()
at Object.exports.unwrapURI (D:\tools\npm\node_modules\node_global\node_modules\nej\lib\util\path.js:155:20)
at Klass.pro._formatContent (D:\tools\npm\node_modules\node_global\node_modules\nej\lib\meta\html.js:857:18)
at Klass.pro._formatRSURI (D:\tools\npm\node_modules\node_global\node_modules\nej\lib\meta\html.js:814:24)
at Klass.cs (D:\tools\npm\node_modules\node_global\node_modules\nej\lib\meta\html.js:94:21)
at D:\tools\npm\node_modules\node_global\node_modules\nej\lib\meta\html.js:861:29
at D:\tools\npm\node_modules\node_global\node_modules\nej\lib\util\path.js:156:16