Skip to content
This repository has been archived by the owner on Feb 2, 2021. It is now read-only.

Unable to import npm module in less #121

Open
padinko opened this issue Apr 4, 2019 · 0 comments
Open

Unable to import npm module in less #121

padinko opened this issue Apr 4, 2019 · 0 comments

Comments

@padinko
Copy link

padinko commented Apr 4, 2019

Version

latest

Reproduction link

http://example.com

Steps to reproduce

npm install normalize.css

@import "~normalize.css";

What is expected ?

it compiles less file and it will include normalize.css

What is actually happening?

Module build failed (from ./node_modules/postcss-loader/src/index.js): friendly-errors 15:08:14
Error: Can't resolve '~normalize.css' in 'C:\web\work\zeo-adonuxt\resources\assets\less'

Additional comments?

Hello,
in less-loader there is native alias ~ for importing npm modules, but in adonuxt it's imposibble.
there is problem probably with your alias, which is the same as less-loader alias ~

This bug report is available on Nuxt community (#c98)
@ghost ghost added the cmty:bug-report label Apr 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant