Coder Social home page Coder Social logo

Comments (6)

egeriis avatar egeriis commented on June 11, 2024 1

No process usage in redux-json-api :)

https://github.com/redux-json-api/redux-json-api/search?q=process&unscoped_q=process

from redux-json-api.

egeriis avatar egeriis commented on June 11, 2024 1

The stack shows that the error comes from keykey, not sure why it's looking at process.

from redux-json-api.

westandy-dcp avatar westandy-dcp commented on June 11, 2024

I did more experimenting, even if I simple do a console.log(api); I get that same error. Basically, if I refer to anything imported from the redux-json-api library, then I get that error.

from redux-json-api.

westandy-dcp avatar westandy-dcp commented on June 11, 2024

Because I'm in TypeScript (thanks to Angular), I noticed that VSCode gave me this warning:

Could not find a declaration file for module 'redux-json-api'.
'/Users/andy/repos/gas-scheduling/frontend/node_modules/redux-json-api/lib/jsonapi.js'
implicitly has an 'any' type. Try npm install @types/redux-json-api if it exists or add a new declaration (.d.ts) file containing declare module 'redux-json-api';ts(7016)

from redux-json-api.

westandy-dcp avatar westandy-dcp commented on June 11, 2024

I added this to the polyfills.ts in the application:

/***************************************************************************************************
 * APPLICATION IMPORTS
 */
(window as any).process = {
  env: { DEBUG: undefined }
};

You might want to check your tests and make sure you not refer to process.env anywhere

from redux-json-api.

 avatar commented on June 11, 2024

So I pulled the repo down and did some searching myself. I agree that there’s no process anywhere. Except in the node_modules. I’m wondering if a dependency is introducing that. 🤔

from redux-json-api.

Related Issues (20)

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.