GithubHelp home page GithubHelp logo

Comments (6)

frederickfogerty avatar frederickfogerty commented on May 28, 2024

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.

EmanH avatar EmanH commented on May 28, 2024

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.

EmanH avatar EmanH commented on May 28, 2024

I got resolveJsonModule working in the end. No problem.

from angular.

frederickfogerty avatar frederickfogerty commented on May 28, 2024

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.

jeremiahmark avatar jeremiahmark commented on May 28, 2024

Hey, I'm trying to use the library and getting the same issue how was this resolved in the past?

from angular.

Cdrew92 avatar Cdrew92 commented on May 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.