Comments (11)
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.
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.
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.
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.
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.
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.
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.
from e-mobility-charging-stations-simulator.
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.
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.
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.
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)
- [FEATURE] Add support for authentication schemes to Web UI
- [BUG] GetDiagnostics is trying to upload the incorrect folder HOT 2
- [BUG] GetDiagnostics: FTP client incorrect access request when custom port present in the uri HOT 1
- [FEATURE] Save simulator state
- [HELP] Unsupported protocol: 'undefined' or protocol version: 'undefined' HOT 1
- [BUG] Double trailing slash when supervisionUrl points to domain path root HOT 3
- [BUG] HOT 1
- [BUG] HOT 1
- [BUG] When triggering message BootNotification and its returning request Accepted, the emulator does not start the sequence of messages HOT 5
- [BUG] web-ui doesn't connect to simulator when running as container HOT 3
- [BUG] Incorrect connector status after startup in UI server
- [BUG] elementAddDelay should be elementStartDelay in the readme HOT 2
- [BUG] Request PDU is invalid HOT 9
- [TEST] Add UTs
- [BUG] Start Simulator HOT 1
- [FEATURE] Community support space
- [BUG] UI does not work anymore on simulator v 1.2.37 HOT 4
- [FEATURE] Add Deno support
- [FEATURE] Add action in the Web UI to display detailed charging station informations
- [FEATURE] Add change notification command to UI protocol
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from e-mobility-charging-stations-simulator.