-
Notifications
You must be signed in to change notification settings - Fork 4
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
spm doc watch 模式下 require 超过2层目录反斜杠解析出错 Uncaught SyntaxError: Unexpected token ILLEGAL #32
Comments
应该是这个问题:spmjs/spm#1142 重新安装 spm 再试试。 |
我重装了spm ,但是版本还是3.3.4,如果升级到更高版本? |
主要是为了更新依赖,大版本应该没变。 更新后是否修复了楼主的问题? |
问题依旧:
安装过程中未报错 我的操作系统环境是:win 8.1 以及 win 10 TechnicalPreview |
还有个情况:在#1142 下,说到是 require("./style\x-user.css"); 也是失败的 |
发布了没?我重装spm之后,serve-spm 的 js.js 46行 winPath(...) 并没有加上 |
npm install spm@ninja,发在 ninja tag 上。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
在 js 中,我使用了:
但是在前端获取到的数据确变成了:
这里的第二个反斜杠变成了正斜杠
这个问题很奇怪,其它使用这种方式写的虽然第二个反斜杠变成了正斜杠,但是css都加在到了,只有这个user.js 中使用的css没有被加在出来。
这是user.js的代码:
全部代码我已经提交到了:https://github.com/GENGSHUANGs/mocenter
1、spm install
2、spm doc watch
访问:http://localhost:8000/examples/index2.html
Console中可看到错误,我的环境是chrome 版本 40.0.2214.91 m
The text was updated successfully, but these errors were encountered: