Closed Cloufish closed 1 year ago
Alright, let's fix this.
Firstly can you check your node version? Mine is
node -v
v19.5.0
And I ran the following command:
npm install
Then I ran the typescript development server in watch mode
npm run watch
After this, I went to a new tab in the terminal and issued the following command. I received the following output
npm run start
> node dist/main
Download from The_Rust_DiscoverySTM
Delay for 30 seconds
Successfully printed? /Users/q/Desktop/projects/Rust-Book-In-PDF/f3discovery.pdf
Completed
I am wondering if this is a node version difference. Let me know :).
Lastly, I have added this book to this repo config, so it will be available as soon as the PR is merged. If you would like to expedite the process you can also review it. https://github.com/shirshak55/Rust-Book-In-PDF/pull/11
XD
Yes...
my node version was 16.19.0
...
I don't usually self-host websites or build them xd. Sorry - it was silly issue indeed
I'm trying to convert Discovery STM F3 Embedded Book,
I added in
config.toml
and then tried to execute
/src/main.ts
script:$ tsc /src/main.ts
I generatedmain.js
file,and tried to execute it with:
$ node /src/main.js
But I got an error:
Something about a file with
.js
extension? I don't understand. I googling it I noticed it is a frequent errorThe link -> https://stackoverflow.com/questions/70954671/typescript-nodejs-exports-is-not-defined-in-es-module-scope told that I should delete
"type" : "module"
line inpackage.json
But it didn't fixed the issue and I got other errors:Sorry If it is a silly question. But I need the help nonetheless!!!! xD