js-glaze icon indicating copy to clipboard operation
js-glaze copied to clipboard

Issue when using `@glazed/datamodel`

Open dabit3 opened this issue 2 years ago • 1 comments

Description

It seems like the bundled code does not work.

Technical Information

An error is thrown when trying to import DataModel:

import { DataModel } from '@glazed/datamodel'

Throws this error

|   getDefinitionID(e) {
>     return r(this, n).definitions[e] ?? null;
|   }
|

To replicate:

  1. Install dependency
npm install @glazed/datamodel
  1. Import package
import { DataModel } from '@glazed/datamodel'
  1. Run project
npm start

dabit3 avatar Dec 05 '21 23:12 dabit3

|   getDefinitionID(e) {
>     return r(this, n).definitions[e] ?? null;
|   }
|

This is just bundled code, what is the actual error please?

PaulLeCam avatar Dec 06 '21 10:12 PaulLeCam