Code Monkey home page Code Monkey logo

Comments (4)

alinjiajun avatar alinjiajun commented on May 18, 2024 1

非常感谢及时的帮我解决问题。采用了你的方式已经成功跑起来了

from tina.

imyelo avatar imyelo commented on May 18, 2024

请问报什么错呢?

我看了一下你的 链接,如果在配合 mina-webpack 使用的话,文中 4. 微调加载方式 可以跳过。

from tina.

alinjiajun avatar alinjiajun commented on May 18, 2024

构建没有报错,但是微信小程序报错了 好像是这个js的引入方式不对。
image

这个链接我只用了引入集成Redux-devtools,因为redux本身tina已经有了
你们项目使用redux没有用devtools的吗?

from tina.

imyelo avatar imyelo commented on May 18, 2024

之前都没有,说起来这篇文章还挺实用。

我试了下能正常运行了,你遇到的情况应该是因为 他修改后的包 做了 UMD 打包,所以在 mina-webpack 的配置下面需要单独禁止这个文件使用 babel-loader 重复编译:

// webpack.config.js

// ...
  module: {
    rules: [
      {
        test: /\.js$/,
-       exclude: /node_modules/,
+       exclude: [
+         /node_modules/,
+         resolve('src/libs/remote-redux-devtools.js'), // 你存放 remote-redux-devtools.js 文件的位置
+       ],
        use: 'babel-loader',
      },
// ...

from tina.

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.