-
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
[beta1.3] ESM support #179
Comments
@ironkayman Thanks for noting.This is odd, and seem to work fine in the ordinary case e.g. a blank project I'm using the latest esbuild for @tko generally, so it should be working fine. A support forum like StackOverflow may be able to offer better/further guidance, too. Sorry I don't have more helpful guidance to offer - please share any other details you think might be relevant. |
@brianmhunt Apologies for radiosilence. Firstly, thank you for your concerns! TLDR: i were using parcel 1 for bundling and watching changes with it in my test project - switching to esbuild + ESM TKO build fixed the issue without further complications. Basically: Regarding the npm behavior at question, it probably was caused by applying parcel bundling, i still may not fully understand why: Also while at it, from my experience and experience of my colleagues with TKO as a newcomers (we're in a process of migration from ko 3.5.1 to current TKO), i strongly believe the project readme may be, can be and should be presented/structured more approachable, as at least (imho) it should be updated for beta builds in more details, be more self-sustaining as it is "just enough" for user not to go to wiki/further documentaion offsite (your's prototype or tko.io, very usefull btw)/deeper into the project MDs or source in some (more often than i'd like to admit) cases... and have at least some basic within-arm's-reach examples, i understand as it becomes bigger but i dont see an issue with that. What are your thoughts on it, may i open up a PR in a coming week with an issue here? Sorry if i came off as too rigorous. Thank you sincerely for your time. |
FWIW I put together a light-weight template some time back that uses TKO with webpack and esm: https://github.com/mattlacey/tko_webpack |
Same case as in #95, but for beta1.3. Also it may be considered a continuation of #178
Hello! I'm using ES modules in a project, so, i installed TKO build reference from the npm registry 4.0.0-beta1.3
package.json
and then calling
npm i
i'm getting following error:output
code
that same issue of abscent
@tko/builder
i encountered while building TKO myself from same git tag withmake
andesbuild
. What i got:builds/reference/dist
Right now i'm stumped, i may look into builder, and build.reference dependencies. Can there be a case of some sorts of recursive modules installation? Any advice will be greatly appreciated. Thank you!
The text was updated successfully, but these errors were encountered: