Open irmackenzie opened 5 years ago
Not sure this is the best way to fix it, but I got it running by doing the following:
npm install -D sass-loader node-sass
rules
array in webpack.config.
{ test: /\.scss$/, use: [ 'vue-style-loader', 'css-loader', 'sass-loader' ] }
lang=scss
to the style element in Hello.vue
<style lang="scss"> .greeting { font-size: 20px; } </style>
maybe adding css-loader and vue-style-loader only can pass the issue
The dependency versions in my package.json were way off (this tutorial is 2+ years old). To get it to work as-is, I cleared my "node_modules" directory (using "rm -rf node_modules" or equivalent recursive command), copied the package.json from the source files provided on github, and re-ran "npm install."
I wouldn't accept this solution for real projects, but that's how I got back on track with the tutorial.
When you get to the single page component step in the starter, build does not work.
I think other issues are mentioning this, and it looks like people found solution(s), but nothing clear enough for me to copy. For example, I tried pasting in the new rule mentioned in one issue, and adding the plugin mentioned in another.
However, with a bit of googling I see that vue includes tools to get started with typescript, so maybe that's a better option than trying this tutorial...