Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deno compile: npm package node-red seems to not work #26876

Open
Crafter-Y opened this issue Nov 14, 2024 · 0 comments
Open

deno compile: npm package node-red seems to not work #26876

Crafter-Y opened this issue Nov 14, 2024 · 0 comments

Comments

@Crafter-Y
Copy link

Crafter-Y commented Nov 14, 2024

deno 2.0.6 (stable, release, x86_64-pc-windows-msvc)
v8 12.9.202.13-rusty
typescript 5.6.2
current latest node-red: 4.0.5

Steps to reproduce:

  1. deno install npm:node-red
  2. deno run --allow-all npm:node-red --userDir ./nodeRedData (seems to work fine)
  3. delete the ./nodeRedData
  4. deno compile -o nodered.exe --allow-all npm:node-red --userDir ./nodeRedData
  5. .\nodered.exe
PS F:\programming\deno-compile-test> .\nodered.exe
error: Uncaught (in promise) TypeError: Cannot read properties of null (reading 'getTime')
    at Object.<anonymous> (file:///C:/Users/MY_NAME/AppData/Local/Temp/deno-compile-nodered.exe/.deno_compile_node_modules/localhost/node-red/4.0.5/red.js:145:36)
    at Object.<anonymous> (file:///C:/Users/MY_NAME/AppData/Local/Temp/deno-compile-nodered.exe/.deno_compile_node_modules/localhost/node-red/4.0.5/red.js:565:4)
    at Module._compile (node:module:745:34)
    at Object.Module._extensions..js (node:module:762:10)
    at Module.load (node:module:662:32)
    at Function.Module._load (node:module:534:12)
    at file:///C:/Users/MY_NAME/AppData/Local/Temp/deno-compile-nodered.exe/.deno_compile_node_modules/localhost/node-red/4.0.5/red.js:5:32

My expectation

I expect the compile command to behave the same like the run command before. But it just throws an error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant