Skip to main content
ArcBlock Community

npm run deploy时报错Cannot read properties of undefined (readii

tao
Support
bugclosed

我通过blocklet create一个dapp项目,然后blocklet dev启动成功。

then npm run bundle也成功了,确实生成了bundle文件。

然后npm run deploy 失败了,报错Cannot read properties of undefined (reading 'toString')

图片.png

这是yml文件

javascript
name: z2qa9uCuerqgMVKN55o69vmWpRr7SMtbndbRP
title: ====
description: A Blocklet DAPP blocklet
keywords:
  - blocklet
  - react
group: dapp
did: ==============
main: blocklet.zip
author:
  name: =======
  email: ===================
repository:
  type: git
  url: git+https://github.com/blocklet/create-blocklet.git
specVersion: 1.1.1
version: 0.1.0
logo: logo.png
files:
  - dist
  - logo.png
  - screenshots
  - api/hooks/pre-start.js
interfaces:
  - type: web
    name: publicUrl
    path: /
    prefix: '*'
    port: BLOCKLET_PORT
    protocol: http
community: ''
documentation: ''
homepage: ''
license: ''
payment:
  price: []
  share: []
timeout:
  start: 60
requirements:
  server: '>=1.6.29'
  os: '*'
  cpu: '*'
scripts:
  preStart: node api/hooks/pre-start.js
  dev: npm run start
environments:
  - name: CHAIN_HOST
    description: What's endpoint of the chain?
    required: true
    default: https://beta.abtnetwork.io/api/
    secure: false
capabilities:
  clusterMode: false
  component: true
  navigation: true
screenshots: []
components: []
gitHash: 40f55b7b925df16daad566166473b60f0af11ce8

这个是什么原因呢,请大佬赐教😣

3 replies

Link2 years ago

感谢反馈。

目前已经废弃了通过 deploy 安装(创建)一个应用(因为需要使用钱包生成一个应用 did )。create-blocklet 中的无用代码我们后续会删掉。

如果你想将 blocklet 安装到你本地的 server 中,请在 server dashboard 中完成

  1. install from url

image.png

  1. 从本地文件安装image.png
  2. 点击 next, 通过钱包生成 did, 走完后续流程即可安装成功
wangshijun2 years ago

感谢反馈问题,接下来的使用过程中如果遇到问题欢迎给我们留言。

这是 Bug Bounty Program 的奖励交易: https://main.abtnetwork.io/explorer/txs/4A0C87421F4CB0DD75C0092F6BAF84C866654651B5BACF94DF13668CD01EFD06

wangshijun2 years ago

问题已经在 blocklet cli v1.16.17 中修复

Reply