Comments (3)
@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.
from tko.
@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)
- Build process rewrite HOT 8
- Deprecate unused npm packages HOT 2
- Convert legacy documentation
- Replace hard-coded parser unicode identifier detection with RegExp HOT 3
- optionsText with a lambda value fails to resolve the function argument HOT 2
- Add preventDefault to event handler options HOT 5
- Incorrect tree with multiple 'or' operators in parser HOT 1
- Unable to load from an ES module HOT 1
- TypeError: Cannot set properties of undefined (setting 'ko') HOT 1
- Re-enable tests on builds/knockout HOT 2
- `options.bindingGlobals` can't be changed at runtime
- Revamp www.tko.io
- Fix typing of the Observable<boolean> HOT 5
- Change mappingHelpers `objectLookup` from an O(n) array to O(1) Map
- Fix the build / exports in package.json
- Build @tko/build.reference into the `tko` package
- Server side render SSR support
- How to build and import TKO-beta as a bundled library. HOT 3
- Writable computed out of sync
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tko.