-
Notifications
You must be signed in to change notification settings - Fork 34
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
Ubiq Node server not starting #47
Comments
Hi @TheBv, Could you say more about the environment you are running in/what the setup is? If inside a new folder, I do a git clone and start the server, like so, it works OK:
Do you mean to say that for your particular project you are including the ubiq server components as submodules in your project? And when transpiling your project it fails to transpile those?
This is a good suggestion for those that might want to transpile rather than use a loader. I will see if I can add a command to the package which demonstrates this. |
Good point. Sorry for not considering that earlier ^^" I think the easiest fix would probably to add an "engines" entry to the package.json. |
Hi @TheBv, thank you for the update! I did a quick test of versions 20.11.0 and 19.4.0 and was able to start with those. Do you have the exact version of 19 you were using so I can try it? |
Node |
OK I see the same thing now with 19.4.0 & npm 9.2.0. It seems version 19.7.0 and above work again. I will add the engines section to the package to prohibit this set of versions, as suggested! |
Done. Thanks for the reporting the issue! |
Simply put running
npm i
followed bynpm run start
won't actually start the server.Instead I get the following error:
Main issue being that we are installing the submodules as dependencies but these are never transpiled to javascript.
So we'd need to tell ts-node that it's allowed to also transpile typescript files by adding the
skipIgnore
flag.E.g
ts-node-esm --skipIgnore app.ts
I'm not fully convinced that that's the best solution especially since this also requires us to add to
@types
dependencies since they are required by theubiq
-module.Maybe I'm missing something though.
Otherwise I'd suggest that it might be a good idea to add a build step to the project that builds the various modules.
The text was updated successfully, but these errors were encountered: