Comments (6)
Hey @EmanH, thanks (again) for opening this issue and the associated PR. As I discussed over in the PR, I think this is a valid bug so will think about a way to fix it. Let me know if you have any other ideas.
At the moment I think the best resolution is biting the bullet and exporting a TS definition from our imgix-url-params pacakge. In the short term, I think we might just have to set the type to a more generic type like { [k: string]: string | number }
.
As a workaround for now until we fix this, is it possible for you to enable --resolveJsonModule
in your tsconfig? This won't have any effect on the compiled code, since it's just for type checking.
By the way, in the future, could you please help us out by opening issues according to one of the issue templates? It really helps us!
from angular.
Thanks Frederick,
I added resolveJsonModule into the tsconfig compiler options for the angular project, but it had no effect. Obviously didn't put it in the right place or right tsconfig file. Any tips on doing that in Angular?
from angular.
I got resolveJsonModule working in the end. No problem.
from angular.
Hey @EmanH - glad you could get this working! We'll leave this open as we want to make it unnecessary to change your Typescript config to use this plugin.
from angular.
Hey, I'm trying to use the library and getting the same issue how was this resolved in the past?
from angular.
Angular 13.3.0 checking in. In addition to resolveJsonModule
I had to set "allowSyntheticDefaultImports: true"
in tsconfig to import ImgixAngularModule
into my App Module
from angular.
Related Issues (12)
- The automated release is failing 🚨 HOT 4
- Infinite loading loop ngAfterViewChecked in setSrcAndSrcsetAttributes HOT 6
- Action Required: Fix Renovate Configuration
- Dependency Dashboard
- Load event firing infinitely HOT 3
- The automated release is failing 🚨 HOT 4
- Generate image as background url HOT 4
- Angular Dependency Upgrade 13/14 HOT 3
- Dynamic image update is not working properly HOT 3
- Bump support to angular 14/15 HOT 2
- Deprecated
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 angular.