Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build doesn't recognize the library #5

Closed
AmitMY opened this issue Aug 2, 2018 · 2 comments
Closed

Build doesn't recognize the library #5

AmitMY opened this issue Aug 2, 2018 · 2 comments

Comments

@AmitMY
Copy link

AmitMY commented Aug 2, 2018

When I run any kind of build command, I get the following error:

[ ERROR ] style error
Style "src\components\app-home\app-home.scss" is a Sass file,
however the "sass" plugin has not been installed. Please install the
"@stencil/sass" plugin and add it to "config.plugins" within the
project's stencil.config.js file. For more info please see:
https://www.npmjs.com/package/@stencil/sass

I can tell you that @stencil/sass is in my node modules, latest version.

These are all of my dependencies:

  "dependencies": {
    "@ionic/core": "^4.0.0-beta.1",
    "@stencil/core": "^0.10.10"
  },
  "devDependencies": {
    "@types/jest": "^22.2.2",
    "jest": "^22.4.3",
    "@stencil/sass": "latest"
  },

And this is my stencil.config.ts:

// https://stenciljs.com/docs/config
import { Config } from '@stencil/core';
import { sass } from '@stencil/sass';

export const config: Config = {
  outputTargets: [
    {
      type: 'www',
      serviceWorker: {
        swSrc: 'src/sw.js'
      }
    }
  ],
  globalScript: 'src/global/app.ts',
  plugins: [
    sass({
      injectGlobalPaths: ['src/global/app.scss']
    })
  ],
};
@adamdbradley
Copy link
Contributor

How sass is imported changed in stencil 0.11.0, but looks like your version of stencil is 0.10.10: https://github.com/ionic-team/stencil/blob/master/CHANGELOG.md#-0110-2018-07-31

@AmitMY
Copy link
Author

AmitMY commented Aug 2, 2018

Thanks, I tried using the old import style, didn't work. However, updating core worked!

@AmitMY AmitMY closed this as completed Aug 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants