Make it work with vanilla tooling (requires latest LTS 18.16. or higher)#1
Open
Zeko369 wants to merge 1 commit into
Open
Make it work with vanilla tooling (requires latest LTS 18.16. or higher)#1Zeko369 wants to merge 1 commit into
Zeko369 wants to merge 1 commit into
Conversation
Author
|
Actually works fine with the current LTS of 18.16.0 😃 |
Owner
|
@Zeko369 I do get some experimental warns ❯ node -v
v18.16.0
❯ npm run dev:vanilla
> my-project@1.0.0 dev:vanilla
> node --watch --loader ts-node/esm -r dotenv/config src/index.ts
(node:7218) ExperimentalWarning: Watch mode is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
(node:7219) ExperimentalWarning: Custom ESM Loaders is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
Hello World undefined
Hello world
Hello world
Completed running 'src/index.ts' |
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

I also added an example that works with
node > 19 natively (technically with >18.11.10 since it was ported, but I think you need a --experimental-watch flag or something like that)node 18.16. LTS and up