Code Monkey home page Code Monkey logo

how-2-use-thingsboard's Issues

规则节点二次开发报错

您好!
我在做规则节点二次开发尝试,按照文档 Clone [email protected]:blackstar-baba/rule-node-examples-ui-ngx.git并切换到customer后,执行到 yarn run build 时报以下错误,官网的rule-node-examples-ui-ngx前几天也报同样错误,不过昨天修正了,您能否给些提示?非常感谢您的无私奉献!
yarn run v1.22.17
$ ng build && node install.js
Building Angular Package


Building entry point 'custom-nodes-config'

Compiling TypeScript sources through ngc
ERROR: Undefined function.
56 │ $x1: $x0 - math.div($x0 * $x0 - abs($r), 2 * $x0);
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

node_modules/thingsboard/src/scss/mixins.scss 56:16 sqrt()
node_modules/thingsboard/src/app/shared/components/popover.component.scss 123:12 root stylesheet
See "/private/var/folders/0h/f6rx0q794js8q_0rtffvs8l80000gn/T/ng-V8oYuV/angular-errors.log" for further details.
error Command failed with exit code 127.

想问一下大佬关于3D组件拓展的问题

我在按照您写的文档创建组件时,程序报了两处错误,我不太清楚是哪里的问题
但是好像是babylonjs的库并没有引用成功,因为报错的部位是babylonjs的库函数部位
我安装了npm,也安装了yarn,并且yarn是在全局下安装的,Thingsboard的环境是ubuntu
QQ截图20230404170655

Mac环境可以源码安装吗

执行到yarn install报错

源码 mvn clean install -Ddockerfile.skip=false -DskipTests=true
[INFO] Running 'yarn install' in /Users/derek/thingsboard/msa/js-executor
[INFO] yarn install v1.22.4
[INFO] [1/5] Validating package.json...
[INFO] [2/5] Resolving packages...
[INFO] success Already up-to-date.
[INFO] $ pkg -t node12-linux-x64,node12-win-x64 --out-path ./target . && node install.js
[INFO] > [email protected]
[INFO] > Warning Failed to make bytecode node12-x64 for file /snapshot/js-executor/server.js error (write EPIPE)
[ERROR] events.js:288
[ERROR] throw er; // Unhandled 'error' event
[ERROR] ^
[ERROR]
[ERROR] Error [ERR_STREAM_DESTROYED]: Cannot call write after a stream was destroyed
[ERROR] at doWrite (_stream_writable.js:437:19)
[ERROR] at writeOrBuffer (_stream_writable.js:425:5)
[ERROR] at Socket.Writable.write (_stream_writable.js:316:11)
[ERROR] at fabricate (/Users/derek/thingsboard/msa/js-executor/node_modules/pkg/lib-es5/fabricator.js:131:15)
[ERROR] at /Users/derek/thingsboard/msa/js-executor/node_modules/pkg/lib-es5/fabricator.js:144:23
[ERROR] at Socket.onError (/Users/derek/thingsboard/msa/js-executor/node_modules/pkg/lib-es5/fabricator.js:83:5)
[ERROR] at Socket.emit (events.js:311:20)
[ERROR] at errorOrDestroy (internal/streams/destroy.js:108:12)
[ERROR] at onwriteError (_stream_writable.js:456:5)
[ERROR] at onwrite (_stream_writable.js:483:5)
[ERROR] Emitted 'error' event on Socket instance at:
[ERROR] at errorOrDestroy (internal/streams/destroy.js:108:12)
[ERROR] at onwriteError (_stream_writable.js:456:5)
[ERROR] at onwrite (_stream_writable.js:483:5)
[ERROR] at doWrite (_stream_writable.js:437:11)
[ERROR] at writeOrBuffer (_stream_writable.js:425:5)
[ERROR] [... lines matching original stack trace ...]
[ERROR] at Socket.emit (events.js:311:20) {
[ERROR] code: 'ERR_STREAM_DESTROYED'
[ERROR] }
[ERROR] error Command failed with exit code 1.
[INFO] info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

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.