Coder Social home page Coder Social logo

Comments (15)

zhangyuang avatar zhangyuang commented on May 20, 2024 2

可以考虑发个1.13.5来覆盖?这样就保证不会出现问题了

from babel-plugin-import.

303394539 avatar 303394539 commented on May 20, 2024 2

@sorrycc 之前在用gulp打包的时候,有.babelrc之类的文件,打包的时候对于babel插件的参数,遇到过configFile参数会造成出现这种绝对路径的问题。可以检查下是否是这个原因。
image

from babel-plugin-import.

sorrycc avatar sorrycc commented on May 20, 2024 1

cnpm 也是 1.13.3。

$ cnpm i babel-plugin-import
✔ Installed 1 packages
✔ Linked 7 latest versions
✔ Run 0 scripts
✔ All packages installed (7 packages installed from npm registry, used 290ms(network 289ms), speed 193.64KB/s, json 7(55.96KB), tarball 0B)
$ cat node_modules/babel-plugin-import/package.json
{
  "name": "babel-plugin-import",
  "version": "1.13.3",

from babel-plugin-import.

sorrycc avatar sorrycc commented on May 20, 2024 1

https://github.com/umijs/babel-plugin-import/releases/tag/v1.13.5

  • 1.13.5

from babel-plugin-import.

zhfish avatar zhfish commented on May 20, 2024

错误版本是通过npm-check-updates获取的版本号

from babel-plugin-import.

wufeng87 avatar wufeng87 commented on May 20, 2024

cnpm 有办法规避么(刚试了好像cnpm还是有问题)?
是不是再发个没问题的1.13.5版本更好呢?谢谢。

from babel-plugin-import.

303394539 avatar 303394539 commented on May 20, 2024

很多项目可能不会粗暴的直接 ^1,或者直接1.x。
也许是大家工作比较积极,刚好在你发布以后就遇到了,就及时反馈了^-^
比如我就是用的~1.13.3,刚好中午就遇到了1.13.4的问题,然后自己锁定了1.13.3。后面你修改以后应该就好了。

from babel-plugin-import.

303394539 avatar 303394539 commented on May 20, 2024

@wufeng87 一般cnpm的更新可能不会那么及时

from babel-plugin-import.

sorrycc avatar sorrycc commented on May 20, 2024

@zhangyuang 打包脚本的 bug 还没时间排查,需要看下为啥会出现本地路径。

from babel-plugin-import.

mizi-lin avatar mizi-lin commented on May 20, 2024

@sorrycc

在 yarn v1.x 没有问题 安装的是 1.13.3

image

但在 yarn v3.2 安装的 1.13.4

image

from babel-plugin-import.

itzhaolin avatar itzhaolin commented on May 20, 2024

大佬简单粗暴了,近期项目 全部构建失败了。

from babel-plugin-import.

AieraFlyyyy avatar AieraFlyyyy commented on May 20, 2024

兄弟们,锁1.12.0版本就可以了

from babel-plugin-import.

sorrycc avatar sorrycc commented on May 20, 2024

@mizi-lin 这是有本地的缓存吧。

from babel-plugin-import.

mizi-lin avatar mizi-lin commented on May 20, 2024

@mizi-lin 这是有本地的缓存吧。

特意清了缓存 测试的·

from babel-plugin-import.

sorrycc avatar sorrycc commented on May 20, 2024

@mizi-lin 全局缓存也清了?

from babel-plugin-import.

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.