Giter Club home page Giter Club logo

Comments (8)

ksky521 avatar ksky521 commented on August 28, 2024

能否创建个repo,提交下完整代码,我们在windows下面看下

from san-cli.

FisNew avatar FisNew commented on August 28, 2024

from san-cli.

FisNew avatar FisNew commented on August 28, 2024

仓库地址

from san-cli.

Lohoyo avatar Lohoyo commented on August 28, 2024

你好,我们已定位到原因:你的 webpack 配置有一处写错了,loader: path.resolve(__dirname, 'node_modules/san-hot-loader/index.js'),这里应该写 san-loader 而不是 san-hot-loader。

from san-cli.

FisNew avatar FisNew commented on August 28, 2024

你好,我们已定位到原因:你的 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.

ksky521 avatar ksky521 commented on August 28, 2024

更新最新版,再试下

from san-cli.

Lohoyo avatar Lohoyo commented on August 28, 2024

请问下这里我是否可以写成loader: require.resolve('san-loader') ?

可以的。

from san-cli.

ksky521 avatar ksky521 commented on August 28, 2024

没问题我关了

from san-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.