TencentBlueKing / TencentBlueKing/bk-lesscode

【BUG】部署可视化开发平台上做好的前端代码,部署时报错

Open
#1,295 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
JavaScript
Stars
63
Forks
70
PR merge metrics
No merged PRs in 30d

Description

**版本(The versions used):7.1

**发生了什么(What happened):部署可视化开发平台上做好的前端代码,部署时报错,代码都是lesscode生成的,部署还不成功,新建的空应用部署也报这个错误,我很费解

**期望是什么(What you expected to happen):页面能成功部署

**如何复现(How to reproduce it):1. 在低代码平台创建空白前端应用 2. 部署应用

**相关的日志详情和截图等(Log & Screenshot):
2024-06-24 14:17:02
npm ERR!

2024-06-24 14:17:02
npm ERR! Exit status 1

2024-06-24 14:17:02
npm ERR! /app/.npm/_logs/2024-06-24T06_17_02_851Z-debug.log

2024-06-24 14:17:02
npm ERR! A complete log of this run can be found in:

2024-06-24 14:17:02

2024-06-24 14:17:05
-----> Starting slug runner heroku-18

2024-06-24 14:17:05
Using config file: /etc/pilot.yaml

2024-06-24 14:17:05
-----> Fetching slug...

2024-06-24 14:17:05
-----> Step setup begin

2024-06-24 14:17:13
-----> Executing command by exec:/bin/bash

2024-06-24 14:17:13
 Step finish done, duration 460ns

2024-06-24 14:17:13
-----> Step finish begin

2024-06-24 14:17:13
 Step analysis done, duration 350.522µs

2024-06-24 14:17:13
 Process web: npm run online

2024-06-24 14:17:13
-----> Analysising Procfile: 2 processes

2024-06-24 14:17:13
-----> Step analysis begin

2024-06-24 14:17:13
 Step setup done, duration 8.473559386s

2024-06-24 14:17:13
 ! Failed to create slug downloaded flag.(open /app/.skip_download_slug: no such file or directory)

2024-06-24 14:17:13
 Slug size is 133 MB, duration: 8.472038437s

2024-06-24 14:17:14

2024-06-24 14:17:14

better-npm-run online

2024-06-24 14:17:14

node-js-bk-magic-vue-spa@1.0.0 online /app

2024-06-24 14:17:14


2024-06-24 14:17:15
running better-npm-run in /app

2024-06-24 14:17:15

2024-06-24 14:17:15
Executing script: online

2024-06-24 14:17:15
to be executed: node lib/server/app.browser.js

2024-06-24 14:17:17
at TraversalContext.visitQueue (/app/node_modules/@babel/traverse/src/context.ts:147:16)

2024-06-24 14:17:17
at NodePath.visit (/app/node_modules/@babel/traverse/src/path/context.ts:101:33)

2024-06-24 14:17:17
at traverseNode (/app/node_modules/@babel/traverse/src/traverse-node.ts:40:17)

2024-06-24 14:17:17
at TraversalContext.visit (/app/node_modules/@babel/traverse/src/context.ts:179:19)

2024-06-24 14:17:17
at TraversalContext.visitSingle (/app/node_modules/@babel/traverse/src/context.ts:108:19)

2024-06-24 14:17:17
at TraversalContext.visitQueue (/app/node_modules/@babel/traverse/src/context.ts:147:16)

2024-06-24 14:17:17
at NodePath.visit (/app/node_modules/@babel/traverse/src/path/context.ts:101:33)

2024-06-24 14:17:17
at traverseNode (/app/node_modules/@babel/traverse/src/traverse-node.ts:40:17)

2024-06-24 14:17:17
at TraversalContext.visit (/app/node_modules/@babel/traverse/src/context.ts:177:19)

2024-06-24 14:17:17
at TraversalContext.visitMultiple (/app/node_modules/@babel/traverse/src/context.ts:98:17)

2024-06-24 14:17:17
at TraversalContext.visitQueue (/app/node_modules/@babel/traverse/src/context.ts:147:16)

2024-06-24 14:17:17
at NodePath.visit (/app/node_modules/@babel/traverse/src/path/context.ts:101:33)

2024-06-24 14:17:17
at traverseNode (/app/node_modules/@babel/traverse/src/traverse-node.ts:40:17)

2024-06-24 14:17:17
at TraversalContext.visit (/app/node_modules/@babel/traverse/src/context.ts:179:19)

2024-06-24 14:17:17
at TraversalContext.visitSingle (/app/node_modules/@babel/traverse/src/context.ts:108:19)

2024-06-24 14:17:17
at TraversalContext.visitQueue (/app/node_modules/@babel/traverse/src/context.ts:147:16)

2024-06-24 14:17:17
at NodePath.visit (/app/node_modules/@babel/traverse/src/path/context.ts:101:33)

2024-06-24 14:17:17
at traverseNode (/app/node_modules/@babel/traverse/src/traverse-node.ts:40:17)

2024-06-24 14:17:17
at TraversalContext.visit (/app/node_modules/@babel/traverse/src/context.ts:177:19)

2024-06-24 14:17:17
at TraversalContext.visitMultiple (/app/node_modules/@babel/traverse/src/context.ts:98:17)

2024-06-24 14:17:17
at TraversalContext.visitQueue (/app/node_modules/@babel/traverse/src/context.ts:147:16)

2024-06-24 14:17:17
at NodePath.visit (/app/node_modules/@babel/traverse/src/path/context.ts:101:33)

2024-06-24 14:17:17
at traverseNode (/app/node_modules/@babel/traverse/src/traverse-node.ts:40:17)

2024-06-24 14:17:17
at TraversalContext.visit (/app/node_modules/@babel/traverse/src/context.ts:177:19)

2024-06-24 14:17:17
at TraversalContext.visitMultiple (/app/node_modules/@babel/traverse/src/context.ts:98:17)

2024-06-24 14:17:17
at TraversalContext.visitQueue (/app/node_modules/@babel/traverse/src/context.ts:147:16)

2024-06-24 14:17:17
at NodePath.visit (/app/node_modules/@babel/traverse/src/path/context.ts:101:33)

2024-06-24 14:17:17
at traverseNode (/app/node_modules/@babel/traverse/src/traverse-node.ts:40:17)

2024-06-24 14:17:17
at TraversalContext.visit (/app/node_modules/@babel/traverse/src/context.ts:177:19)

2024-06-24 14:17:17
at TraversalContext.visitMultiple (/app/node_modules/@babel/traverse/src/context.ts:98:17)

2024-06-24 14:17:17
at TraversalContext.visitQueue (/app/node_modules/@babel/traverse/src/context.ts:147:16)

2024-06-24 14:17:17
at NodePath.visit (/app/node_modules/@babel/traverse/src/path/context.ts:101:33)

2024-06-24 14:17:17
at traverseNode (/app/node_modules/@babel/traverse/src/traverse-node.ts:40:17)

2024-06-24 14:17:17
at TraversalContext.visit (/app/node_modules/@babel/traverse/src/context.ts:179:19)

2024-06-24 14:17:17
at TraversalContext.visitSingle (/app/node_modules/@babel/traverse/src/context.ts:108:19)

2024-06-24 14:17:17
at TraversalContext.visitQueue (/app/node_modules/@babel/traverse/src/context.ts:147:16)

2024-06-24 14:17:17
at NodePath.visit (/app/node_modules/@babel/traverse/src/path/context.ts:94:31)

2024-06-24 14:17:17
at NodePath.call (/app/node_modules/@babel/traverse/src/path/context.ts:20:17)

2024-06-24 14:17:17
at NodePath._call (/app/node_modules/@babel/traverse/src/path/context.ts:35:20)

2024-06-24 14:17:17
at call (/app/node_modules/@babel/traverse/src/visitors.ts:304:14)

2024-06-24 14:17:17
at PluginPass.call (/app/node_modules/babel-plugin-parameter-decorator/lib/index.js:201:44)

2024-06-24 14:17:17
at Array.forEach ()

2024-06-24 14:17:17
at /app/node_modules/babel-plugin-parameter-decorator/lib/index.js:204:30

2024-06-24 14:17:17
at Array.forEach ()

2024-06-24 14:17:17
at /app/node_modules/babel-plugin-parameter-decorator/lib/index.js:257:29

2024-06-24 14:17:17
TypeError: /app/lib/server/controller/bkvision.js: Cannot read property 'insertAfter' of null

2024-06-24 14:17:17

2024-06-24 14:17:17
^

2024-06-24 14:17:17
throw e;

2024-06-24 14:17:17
/app/node_modules/@babel/core/lib/transformation/index.js:31

2024-06-24 14:17:17
}

2024-06-24 14:17:17
code: 'BABEL_TRANSFORM_ERROR'

2024-06-24 14:17:17
at TraversalContext.visitQueue (/app/node_modules/@babel/traverse/src/context.ts:147:16) {

2024-06-24 14:17:17
at NodePath.visit (/app/node_modules/@babel/traverse/src/path/context.ts:101:33)

2024-06-24 14:17:17
at traverseNode (/app/node_modules/@babel/traverse/src/traverse-node.ts:40:17)

2024-06-24 14:17:17
at TraversalContext.visit (/app/node_modules/@babel/traverse/src/context.ts:179:19)

2024-06-24 14:17:17
at TraversalContext.visitSingle (/app/node_modules/@babel/traverse/src/context.ts:108:19)

2024-06-24 14:17:17
at TraversalContext.visitQueue (/app/node_modules/@babel/traverse/src/context.ts:153:21)

2024-06-24 14:17:17
at TraversalContext.visitQueue (/app/node_modules/@babel/traverse/src/context.ts:147:16)

2024-06-24 14:17:17
at NodePath.visit (/app/node_modules/@babel/traverse/src/path/context.ts:101:33)

2024-06-24 14:17:17
at traverseNode (/app/node_modules/@babel/traverse/src/traverse-node.ts:40:17)

2024-06-24 14:17:17
at TraversalContext.visit (/app/node_modules/@babel/traverse/src/context.ts:179:19)

2024-06-24 14:17:17
at TraversalContext.visitSingle (/app/node_modules/@babel/traverse/src/context.ts:108:19)

2024-06-24 14:17:17
npm ERR! code ELIFECYCLE

2024-06-24 14:17:17
npm ERR! errno 1

2024-06-24 14:17:17
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

2024-06-24 14:17:17
npm ERR! Failed at the node-js-bk-magic-vue-spa@1.0.0 online script.

2024-06-24 14:17:17
npm ERR!

2024-06-24 14:17:17
npm ERR! Exit status 1

2024-06-24 14:17:17
npm ERR! node-js-bk-magic-vue-spa@1.0.0 online: better-npm-run online

2024-06-24 14:17:17
npm ERR! /app/.npm/_logs/2024-06-24T06_17_17_727Z-debug.log

2024-06-24 14:17:17
npm ERR! A complete log of this run can be found in:

2024-06-24 14:17:17

备注(Anything else we need to know):

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the deployment reproduction: create a blank frontend application in the low-code platform and run the deployment using npm run online. Inspect lib/server/controller/bkvision.js and the Babel transformation path around the reported insertAfter error. Done means the blank generated application deploys successfully without the BABEL_TRANSFORM_ERROR.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
build-system, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.