weexteam / A-pack-tool-for-Apache-Weex

A pack tool for Android、iOS and H5 plartform of Weex. This tool is a third party work, and is not developed nor maintained by Apache Weex.
Apache License 2.0
611 stars 76 forks source link

预览整个项目,运行:weex src --entry src/foo.vue,为什么会报错? #216

Closed AugTang closed 6 years ago

AugTang commented 6 years ago

E:\weex>weex src --entry src/foo.vue C:\Users\myth\AppData\Roaming\npm\node_modules\weex-toolkit\node_modules_webpack@3.10.0@webpack\lib\TemplatedPathPlugin.js:48 if(!allowEmpty) throw new Error(Path variable ${match} not implemented in this context: ${input}); ^

Error: Path variable [name] not implemented in this context: C:\Users\myth.weex_tmp[name].weex.js at C:\Users\myth\AppData\Roaming\npm\node_modules\weex-toolkit\node_modules_webpack@3.10.0@webpack\lib\TemplatedPathPlugin.js:48:26 at RegExp.[Symbol.replace] (native) at String.replace (native) at MainTemplate.replacePathVariables (C:\Users\myth\AppData\Roaming\npm\node_modules\weex-toolkit\node_modules_webpack@3.10.0@webpack\lib\TemplatedPathPlugin.js:71:4) at MainTemplate.applyPluginsWaterfall (C:\Users\myth\AppData\Roaming\npm\node_modules\weex-toolkit\node_modules_tapable@0.2.8@tapable\lib\Tapable.js:92:24) at Compilation.getPath (C:\Users\myth\AppData\Roaming\npm\node_modules\weex-toolkit\node_modules_webpack@3.10.0@webpack\lib\Compilation.js:1424:28) at applyPluginsAsync.err (C:\Users\myth\AppData\Roaming\npm\node_modules\weex-toolkit\node_modules_webpack@3.10.0@webpack\lib\Compiler.js:356:29) at Compiler.applyPluginsAsyncSeries (C:\Users\myth\AppData\Roaming\npm\node_modules\weex-toolkit\node_modules_tapable@0.2.8@tapable\lib\Tapable.js:195:46) at Compiler.emitAssets (C:\Users\myth\AppData\Roaming\npm\node_modules\weex-toolkit\node_modules_webpack@3.10.0@webpack\lib\Compiler.js:354:8) at onCompiled (C:\Users\myth\AppData\Roaming\npm\node_modules\weex-toolkit\node_modules_webpack@3.10.0@webpack\lib\Compiler.js:240:9)