You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I have a syntax error in a script tag (e.g <script>}</script>, snowpack fails with the error below. It would be nice if this mentioned which file, and line number has the error.
$ npx snowpack dev
...
[10:46:11] [snowpack] Build Result Error: There was a problem with a file build
result.
[10:46:11] [snowpack] Error: Parse error @:1:0
at parse$n (/home/ahupp/parsetest/node_modules/snowpack/lib/index.js:117254:379)
at scanCodeImportsExports (/home/ahupp/parsetest/node_modules/snowpack/lib/index.js:120554:29)
at transformEsmImports (/home/ahupp/parsetest/node_modules/snowpack/lib/index.js:120570:27)
at transformHtmlImports (/home/ahupp/parsetest/node_modules/snowpack/lib/index.js:120601:32)
at Object.transformFileImports (/home/ahupp/parsetest/node_modules/snowpack/lib/index.js:120644:16)
at FileBuilder.resolveImports (/home/ahupp/parsetest/node_modules/snowpack/lib/index.js:157588:45)
at async loadUrl (/home/ahupp/parsetest/node_modules/snowpack/lib/index.js:177117:39)
at async handleRequest (/home/ahupp/parsetest/node_modules/snowpack/lib/index.js:177205:28) {
idx: 0
}
[10:46:11] [snowpack] Error: Parse error @:1:0
[10:46:11] [snowpack] [500] /
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
If I have a syntax error in a script tag (e.g
<script>}</script>
, snowpack fails with the error below. It would be nice if this mentioned which file, and line number has the error.Beta Was this translation helpful? Give feedback.
All reactions