Skip to content

[beta1.3] ESM support #179

Description

@lorilorimori

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

"dependencies": {
    "@tko/build.reference": "^4.0.0-beta1.3"
  },

and then calling npm i i'm getting following error:

output

node_modules/@tko/build.reference/dist/index.js:2:24: Cannot resolve dependency '@tko/builder'
  1 | // @tko/build.reference 🥊 4.0.0-beta1.3 ESM
> 2 | import { Builder } from "@tko/builder";

code

import ko from "@tko/build.reference/dist/index"
# the default export from build.reference is actualy a knockout instance from Builder.create(...)

that same issue of abscent @tko/builder i encountered while building TKO myself from same git tag with make and esbuild. What i got:

  • esbuild successfully populated builds/reference/dist
  • trying to import either reference/index.ts and/or reference/dist/index.js still getting same error above.

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions