【问题标题】:Nrwl: Storybook giving me error TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefinedNrwl:Storybook 给我错误 TypeError [ERR_INVALID_ARG_TYPE]:“路径”参数必须是字符串类型。收到未定义
【发布时间】:2021-12-12 07:12:00
【问题描述】:

我的 Angular 故事书运行良好,但我添加了一个组件,尝试重新生成故事书并开始出现以下错误

    info => Loading presets

info => Loading 1 config file in "C:\code\libs\lib-core\.storybook"
info => Loading 8 other files in "C:\code\libs\lib-core\.storybook"
info => Adding stories defined in "C:\code\libs\lib-core\.storybook\main.js"
info => Found custom tsconfig.json
info => Using implicit CSS loaders
info => Loading angular-cli config
info => Using angular project "lib-core:build" for configuring Storybook
ERR! => Could not get angular cli webpack config
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined


          Broken build, fix the error above.
          You may need to refresh the browser.


———————————————————————————————————————————————

>  NX   

  Failed tasks:


  Hint: run the command with --verbose for more details.

【问题讨论】:

    标签: nrwl-nx angular-storybook


    【解决方案1】:

    为了解决这个问题,我不得不在架构师 --> 构建 --> 选项下添加一个属性 tsConfig,并尝试重新运行故事书

    【讨论】:

      猜你喜欢
      • 2021-09-08
      • 2020-12-30
      • 2022-01-12
      • 2020-09-21
      • 1970-01-01
      • 2021-01-22
      • 2021-06-06
      • 2019-12-14
      相关资源
      最近更新 更多