Giter VIP home page Giter VIP logo

Comments (3)

brianmhunt avatar brianmhunt commented on June 8, 2024

@ironkayman Thanks for noting.This is odd, and seem to work fine in the ordinary case e.g. a blank project

CleanShot 2022-08-04 at 08 11 13@2x

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.

from tko.

ironkayman avatar ironkayman commented on June 8, 2024

@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:
Parcel (v1, i did not test v2, didnt really looked into its issues) somewhy was ignoring default ESM export in case of TKO (the ko instance from Builder.create was created successfully, to be precise, but external import in my project directory was failing, returning undefined), same issue with IIFE, which worked partially, but failed to addup registered bindings to tko global scope.

Regarding the npm behavior at question, it probably was caused by applying parcel bundling, i still may not fully understand why:
running npm install after first parcel build is the possible cause of the issue, as only after that the instllation of @tko/build.reference started to fail. Or, it may be both issues in parcel (considering its no longer maintained version). To recreate, enought to apply parcel-bundler 'watch' configuration on very basic TKO project from 1 component at least (as its what i were testing on).

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.

from tko.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.