Skip to content
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

Issue when using @glazed/datamodel #97

Open
dabit3 opened this issue Dec 5, 2021 · 1 comment
Open

Issue when using @glazed/datamodel #97

dabit3 opened this issue Dec 5, 2021 · 1 comment

Comments

@dabit3
Copy link

dabit3 commented Dec 5, 2021

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
@PaulLeCam
Copy link
Contributor

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

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

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

No branches or pull requests

3 participants