Coder Social home page Coder Social logo

项目在本地运行报错 about antdfront HOT 17 CLOSED

x-neuron avatar x-neuron commented on August 18, 2024
项目在本地运行报错

from antdfront.

Comments (17)

X-neuron avatar X-neuron commented on August 18, 2024 1

把recoil换成jotai吧,学习成本可以降一大截【手动滑稽】

https://docs.pmnd.rs/jotai/integrations/xstate jotai 集成 xstate 额,是个亮点.... 在一些流程化场景 限定里 state machine 作用不小。 jotai 要 解决了 url 和 storage 的问题,应该会考虑上jotai 它两api也差不多,切换也方便...

from antdfront.

X-neuron avatar X-neuron commented on August 18, 2024 1

能跑起来了,但是vue2的测试页面显示不出来,同时控制台有提示说locale加载失败

example/vue2 的 那个 build下。然后 nginx 配个Ip + 端口 指到改dist路径下 。 config/route.js 改好哇~
下次 发个docker build文件吧...

from antdfront.

X-neuron avatar X-neuron commented on August 18, 2024

我重新下了,win10 新环境下tyarn 拉包后 ,在node 16.1 和 node 14下 npm run dev/build 都可以哇 。办公室win7 也OK
你的是苹果系统?

from antdfront.

chj-damon avatar chj-damon commented on August 18, 2024

哦,我明白了,可能是我的node版本不对。我用高版本的node再试试。

from antdfront.

youngboo avatar youngboo commented on August 18, 2024

哦,我明白了,可能是我的node版本不对。我用高版本的node再试试。

你的好了吗,我mac系统试了也不行

from antdfront.

chj-damon avatar chj-damon commented on August 18, 2024

我把node 切到v16.2试了一下,也是不行的。一直报这个错:
image
我是苹果系统

from antdfront.

chj-damon avatar chj-damon commented on August 18, 2024

你的好了吗,我mac系统试了也不行

我的也不行。

from antdfront.

youngboo avatar youngboo commented on August 18, 2024

你的好了吗,我mac系统试了也不行

我的也不行。

估计是webpack的config有问题,回去再研究研究

from antdfront.

X-neuron avatar X-neuron commented on August 18, 2024

你的好了吗,我mac系统试了也不行

我的也不行。
#10 (comment) 里面 有个 也是mac系统的。有问题,手工在chalk里删了个 platform,初步看提示,可能这两个报的问题不一样,看来这是个bug。下次得布个 苹果系统 测下 ,下次更新的时候 会修复这个问题。

预告:2.1版可能 权限系统会升级, 主要在实战过程中,前后端联调需要更好的属性级 casl 权限的表达...
typescript 预计在2.2版后再支持..

from antdfront.

chj-damon avatar chj-damon commented on August 18, 2024

把recoil换成jotai吧,学习成本可以降一大截【手动滑稽】

from antdfront.

X-neuron avatar X-neuron commented on August 18, 2024

把recoil换成jotai吧,学习成本可以降一大截【手动滑稽】
If your app heavily requires state serialization (storing state in storage, server, or URL), Recoil comes with good features.
https://docs.pmnd.rs/jotai/basics/comparison

from antdfront.

swiftwind0405 avatar swiftwind0405 commented on August 18, 2024

mac下同样不行,求解决啊。。

from antdfront.

X-neuron avatar X-neuron commented on August 18, 2024

mac下同样不行,求解决啊。。

近期抽时间集中公关下~

from antdfront.

X-neuron avatar X-neuron commented on August 18, 2024

哦,我明白了,可能是我的node版本不对。我用高版本的node再试试。
mac下同样不行,求解决啊。。

你的好了吗,我mac系统试了也不行
我的也不行。
估计是webpack的config有问题,回去再研究研究

webpack.config里 把 查找 ModuleScopePlugin 。注释掉 引入和使用这个插件的地方 截图所报的错误应该可以解决
new ModuleScopePlugin(paths.appSrc, [
paths.appPackageJson,
reactRefreshOverlayEntry,
])
这个问题是 主要是引用 ModuleScopePlugin限制src 目录外的资源引入而导致的问题

from antdfront.

chj-damon avatar chj-damon commented on August 18, 2024

那当时为什么需要这个ModuleScopePlugin插件?

from antdfront.

X-neuron avatar X-neuron commented on August 18, 2024

那当时为什么需要这个ModuleScopePlugin插件?

问题解决了?
限制src 目录外的资源引入而导致的问题,有助于编译优化。照搬cra里的 代码过来的...觉得有用就保留了下来

from antdfront.

chj-damon avatar chj-damon commented on August 18, 2024

能跑起来了,但是vue2的测试页面显示不出来,同时控制台有提示说locale加载失败

from antdfront.

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.