Skip to content

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

Closed

Description

@alvarosaavedra

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????

Activity

  1. michael-ciniawsky commented on Oct 24, 2017

    @michael-ciniawsky
    Contributor

    '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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions