anonymouse703's avatar

Error on running serve

Hello guys, I tried to clone a project from a repo. I already install the packages... when I try to yarn serve I got this error.

ERROR Failed to compile with 1 error in ./src/App.vue?vue&type=style&index=0&lang=scss& Syntax Error: Error: PostCSS received undefined instead of CSS string

this my App.vue

<template>
  <router-view></router-view>
</template>

<script>
export default {
  name: 'App'
}
</script>

<style lang="scss">
  // Import Main styles for this application
  @import 'assets/scss/style';
</style>

0 likes
2 replies
neilstee's avatar

@anonymouse703 are you sure the yarn install is a success?

Can you try the following:

  • yarn install --force or
  • yarn rebuild node-sass
anonymouse703's avatar

Hi sir, this is the error on your second suggestion. error Command "rebuild" not found.

Please or to participate in this conversation.