Comments (6)
@ijlee2 haven't had a chance to even respond, let alone create the issue until now! Thanks for the head's up!
from ember-intl.
@jamescdavis Can you lend support? I'm not sure where to start.
When #1719 had been merged, ember-intl
had relied on version 0.9.x
of Glint. I wonder if, with the latest 1.0.x
, the types may need to be reviewed again and possibly redefined.
I'll see if I can help update @glint/*
packages in #1766.
from ember-intl.
Will close the issue, as I was able to extend the template registry from ember-intl
with @glint/[email protected]
in a "hello-world" app.
Note, the types for ember-intl
are currently checked against @glint/[email protected]
. We'll need to check against the latest 1.x
soon.
from ember-intl.
@ijlee2 - sorry to bug you, but I am still facing the above error while using ember-intl 6.1.0
I've already added:
import type EmberIntlRegistry from 'ember-intl/template-registry';
declare module '@glint/environment-ember-loose/registry' {
export default interface Registry extends EmberIntlRegistry {
...
}
}
Potentially related to my issue, I am additionally seeing duplicate service declarations, on top of the other errors in this issue.
jluna@DESKTOP-CDO6AK3:~/fantasy-epl$ tsc --noEmit
node_modules/ember-intl/addon/services/intl.d.ts:136:5 - error TS2717: Subsequent property declarations must have the same type. Property 'intl' must be of type 'IntlService', but here has type 'IntlService'.
136 intl: IntlService;
~~~~
node_modules/ember-intl/services/intl.d.ts:136:5
136 intl: IntlService;
~~~~
'intl' was also declared here.
from ember-intl.
@SemaLuna No worries. Due to EmberFest, I'm unable to look at issues this week.
Given the error message, Subsequent property declarations must have the same type.
, I found a possibly related issue on StackOverflow.
A possible solution is to set compilerOptions.skipLibCheck
to true
in tsconfig.json
. However, I think we should fix the type error if possible. In a project of mine, I can reproduce the type error that you showed by removing skipLibCheck
.
Can you open a new issue to describe the error? If you can help with the bug fix, please feel free to create a pull request, too. Thanks.
from ember-intl.
@SemaLuna We have a dedicated issue now. #1787
from ember-intl.
Related Issues (20)
- Double `intl.d.ts` cause type errors HOT 8
- Unexpected locale `en-us` after upgrade to ember-intl v6 HOT 6
- A simple, autogenerated integration test fails for a component using a translation in ember-intl 6.1.2 HOT 6
- Bundle size regression in v6.2.0 HOT 3
- Merge this into formatjs HOT 3
- Incompatible with native `ember-source` types HOT 5
- `allowEmpty` class property not respected in v6.3.1 HOT 1
- Extending helpers like FormatDate has braking changes between v6.2.2 and v6.3.0+ HOT 5
- Basic usage results in: You attempted to update `_locale` [...] infinite revalidation bugs, and performance issues, and is not supported. HOT 4
- How to use `publicOnly: true` in Embroider apps HOT 13
- v6 - Error on valid use of `many`: message cannot be parsed: Unknown plural category: many HOT 1
- Deleted
- Plans for v7 release
- Memory leak regression after upgrading to `>= 6.3.0` HOT 3
- Do not blow up the whole page if a variable is missing ? HOT 2
- Vulnerability in dependency `glob-parent` via `broccoli-merge-files` HOT 10
- Create a docs-app that checks `wrapTranslationsWithNamespace: true`
- Create a docs-app that checks fetching translations HOT 1
- Create a docs-app that checks `publicOnly: true`
- Could not find module `eventemitter3` HOT 2
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 ember-intl.