Comments (8)
能否创建个repo,提交下完整代码,我们在windows下面看下
from san-cli.
from san-cli.
from san-cli.
你好,我们已定位到原因:你的 webpack 配置有一处写错了,loader: path.resolve(__dirname, 'node_modules/san-hot-loader/index.js')
,这里应该写 san-loader 而不是 san-hot-loader。
from san-cli.
你好,我们已定位到原因:你的 webpack 配置有一处写错了,
loader: path.resolve(__dirname, 'node_modules/san-hot-loader/index.js')
,这里应该写 san-loader 而不是 san-hot-loader。
麻烦了。
path.resolve(__dirname, 'node_modules/san-hot-loader/index.js')
请问下这里我是否可以写成loader: require.resolve('san-loader') ?
在我san-hot-loader改为san-hot-loader之后出现了新的问题:
ERROR in ./src/App.san 17:93
Module parse failed: Bad character escape sequence (17:93)
File was processed with these loaders:
* ./node_modules/san-hot-loader/index.js
* ./node_modules/san-loader/index.js
You may need an additional loader to handle the result of these loaders.
| if (module.hot) {
| var __HOT_API__ = require('D:\san-project\node_modules\san-hot-loader\lib\runtime\component-client-api.js');
> var __HOT_UTILS__ = require('D:\san-project\node_modules\san-hot-loader\lib\runtime\utils.js');
|
| var __SAN_COMPONENT__ = __HOT_UTILS__.getExports(module);
@ ./src/main.js 1:0-24 2:14-17
@ multi @babel/polyfill ./src/main.js
报错和之前提的issue类似: #41
from san-cli.
更新最新版,再试下
from san-cli.
请问下这里我是否可以写成loader: require.resolve('san-loader') ?
可以的。
from san-cli.
没问题我关了
from san-cli.
Related Issues (20)
- [Bug] san remote add
- 组件反解 HOT 1
- 兼容性如果,是否兼容IE9一下版本 HOT 1
- [Bug] HOT 1
- [Bug] css modules HOT 4
- [Bug]san init 创建一个项目后,npm start 启动失败 HOT 4
- [Bug] `san -h` 命令死循环了 HOT 1
- CVE-2022-23812: YOUR CODE IS INFECTED WITH MALICIOUS DEPENDENCY - node-ipc
- [Bug]
- IE11不支持吗
- [Bug] 安装san cli后执行san -h 提示 'san' 不是内部或外部命令,也不是可运行的程序
- [Bug]san-loader在Windows下路径解析错误 HOT 4
- [Bug] san文件template下没有子节点时会挂掉
- [Bug] san-loader 使用san单文件,build出来后在IE下会报错 HOT 2
- [Bug]san-loader与ts-loader一起使用,watch模式下编译报错 HOT 2
- [Bug] 按照文档通过loaderOptions配置babel-plugin-import按需加载不生效,使用.babelrc则正常
- [Bug]部署流程中验证邮箱无法通过:缺失保存邮箱验证数据的临时目录 HOT 2
- 支持pug HOT 1
- san-cli创建的demo,无法使用sass或scss[Bug] HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from san-cli.