Closed vaheqelyan closed 3 years ago
You’ll need to set up Babel through babel-loader I think, or use Webpack 5. IIRC Webpack 4 doesn’t support the ?. syntax.
did so, unfortunately..
https://github.com/sveltejs/svelte-loader/issues/137#issuecomment-706750871 solving the issue for me
closing this. the error is not related to svelte-loader
I used this template https://github.com/sveltejs/template-webpack provided by svelte After installing svelte-grid webpack logs error![image](https://user-images.githubusercontent.com/14107127/100379567-8bfa5600-302e-11eb-8a68-f455619f056c.png)
https://github.com/vaheqelyan/svelte-grid/blob/master/src/index.svelte#L107
REPO https://github.com/vaheqelyan/svelte-grid-webpack-template