question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

New type errors with ember and ember-data 3.24 releases

See original GitHub issue

Which package(s) does this problem pertain to?

What are instructions we can follow to reproduce the issue?

npm i -g ember-cli@3.24.0

ember new sample; cd ./sample # Create a new ember app
ember install ember-cli-typescript # Set up typescript support
ember install @types/ember-data

ember serve

Now about that bug. What did you expect to see?

I’d expect to see the app build with no errors.

What happened instead?

node_modules/@types/ember/index.d.ts:446:46 - error TS2339: Property 'htmlSafe' does not exist on type 'typeof import("[REDACTED]/node_modules/@ember/string/index")'.

446         const htmlSafe: typeof EmberStringNs.htmlSafe;
                                                 ~~~~~~~~

node_modules/@types/ember/index.d.ts:447:48 - error TS2339: Property 'isHTMLSafe' does not exist on type 'typeof import("[REDACTED]/node_modules/@ember/string/index")'.

447         const isHTMLSafe: typeof EmberStringNs.isHTMLSafe;
                                                   ~~~~~~~~~~

node_modules/@types/ember-data/index.d.ts:137:31 - error TS2344: Type 'TransformRegistry[K]' does not satisfy the constraint 'string | number | boolean | Date | Transform'.
  Type 'string | number | boolean | {} | any[] | Date' is not assignable to type 'string | number | boolean | Date | Transform'.
    Type '{}' is not assignable to type 'string | number | boolean | Date | Transform'.
      Type '{}' is missing the following properties from type 'Transform': serialize, deserialize, get, getProperties, and 17 more.
        Type 'TransformRegistry[K]' is not assignable to type 'Transform'.
          Type 'string | number | boolean | {} | any[] | Date' is not assignable to type 'Transform'.
            Type 'string' is not assignable to type 'Transform'.

137         options?: AttrOptions<TransformRegistry[K]>
                                  ~~~~~~~~~~~~~~~~~~~~

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:9
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
jamescdaviscommented, Jan 19, 2021

All issues should be resolved in latest @types/ember__string and @types/ember-data (please reopen if not).

0reactions
jamescdaviscommented, Jan 16, 2021

Also: https://github.com/DefinitelyTyped/DefinitelyTyped/pull/50652 should fix the issue with transform types.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ember 3.24 Released
Ember.js 3.24 is an incremental, backwards compatible release of Ember with bug fixes, performance improvements, and minor deprecations. Bug ...
Read more >
ember-source@3.24.x - wrong building of vendor.js (effects ...
Describe the Bug When i install the version 3.24.x, i become a problem in the generated file "vendor.js" (dist).
Read more >
Tweets with replies by EmberJS (@emberjs ... - Twitter
Today we are releasing Ember.js 3.24.7, 3.28.10, 4.4.4, 4.8.1, and 4.9.0-beta.3 to patch a security vulnerability. A CVE number is.
Read more >
ember-qunit | Yarn - Package Manager
v3.5.3 (2018-10-19) and v3.5.2 (2018-10-18). v3.5.2 was mistakenly released with a breaking change that dropped support for Node.js 4. To resolve this situation ......
Read more >
ember-cli - npm
ember -cli. Latest npm release GitHub Actions CI Test Coverage Code Climate. The Ember.js command line utility.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found