Skip to content

@import "~aptr-uikit/scr/index.less"; not working #101

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
alvarosaavedra opened this issue Jul 21, 2016 · 1 comment
Closed

@import "~aptr-uikit/scr/index.less"; not working #101

alvarosaavedra opened this issue Jul 21, 2016 · 1 comment

Comments

@alvarosaavedra
Copy link

It gives and error
ERROR in ./~/css-loader!./~/less-loader!./src/styles/app.less Module build failed: Cannot resolve module 'aptr-uikit/scr/index.less' in /home/asasd/asdsad/frontend-locations/src/styles

The file exists in node_modules, and the relevan part of the config of the webpack is:

 resolve: {
    modulesDirectories: ["node_modules"]
  },

  module: {
    loaders: [
      { test: /\.js?$/,
        loader: 'babel',
        exclude: path.join(__dirname, 'node_modules') },
      { test: /\.scss?$/,
        loader: 'style!css!sass',
        include: path.join(__dirname, 'src', 'styles') },
      { test: /\.less?$/,
        loader: 'style!css!less',
      },
      { test: /\.png$/,
        loader: 'file' },
      { test: /\.(ttf|eot|svg|woff(2)?)(\?[a-z0-9]+)?$/,
        loader: 'file'}
    ]
  }

Any help or advice????

@michael-ciniawsky
Copy link
Member

'aptr-uikit/scr/index.less' => '-> ~ <-aptr-uikit/scr/index.less'

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