Skip to content
This repository has been archived by the owner on Aug 15, 2018. It is now read-only.

js里require css 和less 报Module not found #1369

Closed
xuhuan opened this issue Aug 17, 2015 · 1 comment
Closed

js里require css 和less 报Module not found #1369

xuhuan opened this issue Aug 17, 2015 · 1 comment

Comments

@xuhuan
Copy link

xuhuan commented Aug 17, 2015

系统2008 r2
node版本v0.12.2
spm版本3.6.11
css和less都报错

Module not found: Error: Cannot resolve 'file' or 'directory'

下面是css的截图
image
截图里是插件里的css报错,自己写了个require的测试也不行,官方demo里的less加载也报错。
Google过目前没找到原因和解决方案,有知道的麻烦提点一下。
本来想着报错就自己样式提出去写到页面里就行了,结果碰到插件也有要用到的,没办法只能要去解决了。

node版本降级到0.12.1、0.12.0、0.11.0、0.10.0版本问题依旧。
spm-webpack里执行update升到最新也没解决这个问题。

@xuhuan
Copy link
Author

xuhuan commented Aug 17, 2015

发完才发现之前已经有人发现问题了,如下面网址的问题
#1354

确实是loader-utils的问题导致的,不过目前官方没把 sorrycc 提交的pull 合并进去,自己手工修改了用到的几个地方后问题解决。希望官方早日合并吧。

@xuhuan xuhuan closed this as completed Aug 17, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant