Skip to content

Import css error in a project created with yarn workspaces #2572

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

Closed
mqhe2007 opened this issue Sep 22, 2018 · 3 comments
Closed

Import css error in a project created with yarn workspaces #2572

mqhe2007 opened this issue Sep 22, 2018 · 3 comments

Comments

@mqhe2007
Copy link

Version

3.0.3

Reproduction link

https://github.com/mqhe2007/error-yarn-workspaces

Node and OS info

Node 8.11.2/ yarn 1.9.4 / macOS 10.13.6

Steps to reproduce

in project root directory run:

  1. yarn install
  2. yarn workspace frame run serve

What is expected?

no error

What is actually happening?

image


used iView ui

@LinusBorg LinusBorg added scope: cli-service serve needs team repro We acknowledged your report and will soon try to reproduce it labels Sep 24, 2018
@haoqunjiang haoqunjiang added bug and removed needs team repro We acknowledged your report and will soon try to reproduce it labels Sep 27, 2018
@haoqunjiang
Copy link
Member

As a workaround, add these lines to vue.config.js

module.exports = {
  css: {
    loaderOptions: {
      postcss: {
        path: __dirname
      }
    }
  }
}

@mqhe2007
Copy link
Author

@sodatea 果然是配置问题,但是当时没有找到具体改哪个地方,非常感谢!Thank you very much!

@EnSabanNur
Copy link

EnSabanNur commented Mar 29, 2019

@sodatea, you just saved me from a major migraine after running around in circles for 2 hours trying to solve this issue. Thank you so much 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants