Giter Club home page Giter Club logo

Comments (11)

jerome-benoit avatar jerome-benoit commented on August 21, 2024 1

If the error is only related to the pnpm build command, then the issue is related to your local node.js setup. The CI builds for node.js 16 is successful.
If not, you can try:

import Queue from 'mnemonist/queue.js'

from e-mobility-charging-stations-simulator.

hughsheehy avatar hughsheehy commented on August 21, 2024

Further down, the ending error is this.

at ModuleJob._instantiate (node:internal/modules/esm/module_job:123:21)
at ModuleJob.run (node:internal/modules/esm/module_job:189:5)
at async Promise.all (index 0)
at ESMLoader.import (node:internal/modules/esm/loader:530:24)
at loadESM (node:internal/process/esm_loader:91:5)
at handleMainPromise (node:internal/modules/run_main:65:12)

 ELIFECYCLE  Command failed with exit code 1.

from e-mobility-charging-stations-simulator.

hughsheehy avatar hughsheehy commented on August 21, 2024

At the beginning of the install, I also get two warnings. I don't know if they're important.


pnpm start

[email protected] start /home/hugh_sheehy/e-mobility-charging-stations-simulator
pnpm build && cross-env NODE_ENV=production node -r source-map-support/register dist/start.js

[email protected] build /home/hugh_sheehy/e-mobility-charging-stations-simulator
pnpm rollup

[email protected] rollup /home/hugh_sheehy/e-mobility-charging-stations-simulator
pnpm build-requirements && rollup --config

[email protected] build-requirements /home/hugh_sheehy/e-mobility-charging-stations-simulator
node --no-warnings build-requirements.mjs

src/start.ts, src/charging-station/ChargingStationWorker.ts → dist...
(!) Circular dependency
src/charging-station/Bootstrap.ts -> src/charging-station/ui-server/UIServerFactory.ts -> src/charging-station/ui-server/UIHttpServer.ts -> src/charging-station/ui-server/AbstractUIServer.ts -> src/charging-station/ui-server/ui-services/UIServiceFactory.ts -> src/charging-station/ui-server/ui-services/UIService001.ts -> src/charging-station/ui-server/ui-services/AbstractUIService.ts -> src/charging-station/Bootstrap.ts
(!) Unused external imports
ManyToOne,PrimaryKey,Property,Collection,OneToMany,Configuration,Connection imported from external module "@mikro-orm/core" but never used in "src/performance/storage/MikroOrmStorage.ts", "src/types/orm/entities/PerformanceRecord.ts" and "src/types/orm/entities/PerformanceData.ts".
created dist in 9.8s_

and then a LOT of output until the syntax error listed above.

from e-mobility-charging-stations-simulator.

hughsheehy avatar hughsheehy commented on August 21, 2024

that import - is it in

Not sure what could be wrong with my node.js setup. It's a fresh install on a fresh server. Any ideas/suggestions?

H

from e-mobility-charging-stations-simulator.

jerome-benoit avatar jerome-benoit commented on August 21, 2024

Not sure what could be wrong with my node.js setup. It's a fresh install on a fresh server. Any ideas/suggestions?

I just gave you the import syntax to test in the previous comment ...

Probably also:

import LRUCache from 'mnemonist/lru-map-with-delete.js' in another file.

from e-mobility-charging-stations-simulator.

jerome-benoit avatar jerome-benoit commented on August 21, 2024

Could you please confirm or infirm that the import syntax changes makes the simulator works with node.js 16.x?

If yes, I will integrate the changes.

from e-mobility-charging-stations-simulator.

hughsheehy avatar hughsheehy commented on August 21, 2024

Hi
I'm not sure what's going on. I started again and downloaded the last release as zipped source code and tried that - instead of doing git clone.

The import queue error does not happen because that line in not in the AsyncLock.ts file in the release file.

I made a video of the install process. See here

The install works, though there are warnings, and on pnpm start the server starts. But then it stops after about 90 seconds.

See screenshots.
screenshot-ssh cloud google com-2023 05 30-19_23_13
screenshot-ssh cloud google com-2023 05 30-19_15_51

from e-mobility-charging-stations-simulator.

jerome-benoit avatar jerome-benoit commented on August 21, 2024

The README.md explicitly state that idtags.json must be created from its template.

And as a rule: first test locally and once it's working, go for a remote install.

from e-mobility-charging-stations-simulator.

hughsheehy avatar hughsheehy commented on August 21, 2024

I edited the idtags.json as you suggested.

The server starts, but never connects to anything. THe old software ran perfectly. And is running perfectly. So I think I'll leave this one.

Oh, on the install instructions, you might consider adding all the missing bits like needing to install husky (and how) and having to install corepack, etc. We're not all into Node.

from e-mobility-charging-stations-simulator.

jerome-benoit avatar jerome-benoit commented on August 21, 2024

Oh, on the install instructions, you might consider adding all the missing bits like needing to install husky (and how) and having to install corepack, etc. We're not all into Node.

The install instructions in the README.md already contains all that bits. Would you mind to read it?

from e-mobility-charging-stations-simulator.

jerome-benoit avatar jerome-benoit commented on August 21, 2024

The server starts, but never connects to anything. THe old software ran perfectly. And is running perfectly. So I think I'll leave this one.

It's a configuration issue on your side in config.json or charging station templates. And it's out of the scope of the GitHub issues coverage which are dedicated to development, not end-user support on how OCPP works, how to configure an OCPP server URL, what is a client/server paradigm, how to use Insomnia, etc. for obvious lack of bandwidth available to do it.

from e-mobility-charging-stations-simulator.

Related Issues (20)

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.