father icon indicating copy to clipboard operation
father copied to clipboard

bug: build(father-build) got "TypeError: Cannot read property 'replace' of undefined"

Open ruoqy opened this issue 5 years ago • 9 comments

Versions

  • dumi: 1.0.37
  • father-build: 1.19.1
  • node: 10.16.3
  • npm: 6.9.0
  • OS: mac os

Steps to reproduce

  1. yarn create @umijs/dumi-app
  2. lerna create two packages
  3. npm run build

What is Expected?

success

What is actually happening?

image

ruoqy avatar Dec 03 '20 08:12 ruoqy

@umijs/create-dumi-app use to create a site application, you can use @umijs/create-dumi-lib if you want to build a library

PeachScript avatar Dec 03 '20 09:12 PeachScript

it does not work

ruoqy avatar Dec 03 '20 11:12 ruoqy

this is my config

image

ruoqy avatar Dec 03 '20 12:12 ruoqy

Looks like well, it would be better if there has a reproduce repo, and I will transfer this issue to the father repo.

PeachScript avatar Dec 03 '20 14:12 PeachScript

我也遇到同样的问题

zhengtan2003 avatar Feb 26 '21 08:02 zhengtan2003

遇到同样的问题,很容易复现,yarn create @umijs/dumi-app --site 然后build就会遇到。

jemygraw avatar Apr 14 '21 09:04 jemygraw

@PeachScript 我也是遇到同样的问题,怎么处理呢? image

jackywq avatar Sep 10 '21 03:09 jackywq

the same problem image

wangmeijian avatar Sep 28 '21 09:09 wangmeijian

我是打包umd时报的这个错误,后来发现是src目录下没有入口文件导致的,我加了入口文件就解决了

jimwong666 avatar Nov 03 '21 03:11 jimwong666