This repository has been archived by the owner on Oct 13, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 214
Error: Unexpected character '�' (Note that you need plugins to import files that are not JavaScript) #288
Comments
I can't reproduce this either. Similar to in sveltejs/template#193, it sounds like you don't have the proper Rollup plugins installed and configured, in this case the |
I got this exact error. I've never used Rollup. If I needed to install that separately, I would like to have that in the tutorial that suggests using this template. |
I tried in Ubuntu 18 and it works fine. Windows 10 is where I have the issue. |
Template version: 0d7d020 I reproduced it. I just followed the instruction: npx degit "sveltejs/sapper-template#rollup" counter-sapper
cd counter-sapper
node scripts/setupTypeScript.js
npm i
npm run dev Error:
package.json {
...
"dependencies": {
"compression": "^1.7.1",
"polka": "next",
"sirv": "^1.0.0"
},
"devDependencies": {
"sapper": "^0.28.0",
"svelte": "^3.17.3",
"@babel/core": "^7.0.0",
"@babel/plugin-syntax-dynamic-import": "^7.0.0",
"@babel/plugin-transform-runtime": "^7.0.0",
"@babel/preset-env": "^7.0.0",
"@babel/runtime": "^7.0.0",
"@rollup/plugin-babel": "^5.0.0",
"@rollup/plugin-commonjs": "^14.0.0",
"@rollup/plugin-node-resolve": "^8.0.0",
"@rollup/plugin-replace": "^2.2.0",
"@rollup/plugin-url": "^5.0.0",
"rollup": "^2.3.4",
"rollup-plugin-svelte": "^7.0.0",
"rollup-plugin-terser": "^7.0.0",
"@rollup/plugin-typescript": "^6.0.0",
"@tsconfig/svelte": "^1.0.10",
"@types/compression": "^1.7.0",
"@types/node": "^14.11.1",
"@types/polka": "^0.5.1",
"svelte-check": "^1.0.46",
"svelte-preprocess": "^4.3.0",
"tslib": "^2.0.1",
"typescript": "^4.0.3"
}
} |
This might be a result of rollup/plugins#287 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
npx degit "sveltejs/sapper-template#rollup" sapper-app
cd sapper-app
npm install
npm run dev
The text was updated successfully, but these errors were encountered: