在angular-cli.json文件中,我已将索引文件配置为" home.jsp"。但是在那个jsp文件中,像这样的用户会话的Java导入很少
<%@page import="com.marketplace.user.auth.UserSession"%>
或者如果文件包含任何
"${pageContext.request.contextPath}"
"<%=request.getContextPath()%>"
因此,每当我进行构建时,编译器都会不断抛出错误。
ERROR in Error: Child compilation failed:
Module build failed: SyntaxError: Invalid or unexpected token
- Function
- lodash.js:14843
[excellor.b2b]/[lodash]/lodash.js:14843:16
- lodash.js:494 apply
[excellor.b2b]/[lodash]/lodash.js:494:27
- lodash.js:15227
[excellor.b2b]/[lodash]/lodash.js:15227:16
- lodash.js:496 apply
[excellor.b2b]/[lodash]/lodash.js:496:27
- lodash.js:6600
[excellor.b2b]/[lodash]/lodash.js:6600:16
- lodash.js:14842 Function.template
[excellor.b2b]/[lodash]/lodash.js:14842:20
- SyntaxError: Invalid or unexpected token
- compiler.js:76
[excellor.b2b]/[html-webpack-plugin]/lib/compiler.js:76:16
- Compiler.js:291 Compiler.<anonymous>
[excellor.b2b]/[webpack]/lib/Compiler.js:291:10
- Compiler.js:494
[excellor.b2b]/[webpack]/lib/Compiler.js:494:13
- Tapable.js:202 next
[excellor.b2b]/[tapable]/lib/Tapable.js:202:11
- CachePlugin.js:62 Compiler.<anonymous>
[excellor.b2b]/[webpack]/lib/CachePlugin.js:62:5
- Tapable.js:206 Compiler.applyPluginsAsyncSeries
[excellor.b2b]/[tapable]/lib/Tapable.js:206:13
- Compiler.js:491
[excellor.b2b]/[webpack]/lib/Compiler.js:491:10
- Tapable.js:195 Compilation.applyPluginsAsyncSeries
[excellor.b2b]/[tapable]/lib/Tapable.js:195:46
- Compilation.js:645 self.applyPluginsAsync.err
[excellor.b2b]/[webpack]/lib/Compilation.js:645:19
- Tapable.js:195 Compilation.applyPluginsAsyncSeries
[excellor.b2b]/[tapable]/lib/Tapable.js:195:46
- Compilation.js:636 self.applyPluginsAsync.err
[excellor.b2b]/[webpack]/lib/Compilation.js:636:11
- Tapable.js:195 Compilation.applyPluginsAsyncSeries
[excellor.b2b]/[tapable]/lib/Tapable.js:195:46
- Compilation.js:631 self.applyPluginsAsync.err
[excellor.b2b]/[webpack]/lib/Compilation.js:631:10
- Tapable.js:195 Compilation.applyPluginsAsyncSeries
[excellor.b2b]/[tapable]/lib/Tapable.js:195:46
- Compilation.js:627 sealPart2
[excellor.b2b]/[webpack]/lib/Compilation.js:627:9
- Tapable.js:195 Compilation.applyPluginsAsyncSeries
[excellor.b2b]/[tapable]/lib/Tapable.js:195:46
我可以在这做什么?如果不可能,建议解决。