Coder Social home page Coder Social logo

Comments (7)

Renderz avatar Renderz commented on June 14, 2024 1

public-hoist-pattern[]=@babel

直接配shamefully-hoist=true再重装依赖好像就可以了

from fabric.

gary-Shen avatar gary-Shen commented on June 14, 2024

+1

from fabric.

ipoto avatar ipoto commented on June 14, 2024

在tsconfig.json的include加上.eslintrc.js,"include": ["mock//*", "src//", "config/**/", ".umirc.ts", "typings.d.ts", ".eslintrc.js"],

from fabric.

yunsii avatar yunsii commented on June 14, 2024

我现在是 JS 项目会这样,令人窒息

from fabric.

yunsii avatar yunsii commented on June 14, 2024

终于搞懂了,我手动按着依赖往上一层层找确实找不到依赖,果然代码是不会骗人的 _(:з」∠)_ 研究了很久,发现因为我是用的 pnpm,而 pnpm 默认创建的是半严格的 node_modules 导致的问题,可通过配置 shamefully-hoist 暴力解决,我目前配置的是 public-hoist-pattern[]=*@babel*

from fabric.

yunsii avatar yunsii commented on June 14, 2024

public-hoist-pattern[]=@babel

直接配shamefully-hoist=true再重装依赖好像就可以了

这是最暴力的解决方案,倒是看到不少开源库也是这么干的

from fabric.

superbogy avatar superbogy commented on June 14, 2024

+1

from fabric.

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.