Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ES6 Module - Error when using with Electron #261

Open
v1p opened this issue Feb 25, 2020 · 2 comments
Open

ES6 Module - Error when using with Electron #261

v1p opened this issue Feb 25, 2020 · 2 comments

Comments

@v1p
Copy link

v1p commented Feb 25, 2020

All other dependencies that I have been using with Electron app that I have, only redux-auth-wrapper is throwing this error when being used inside the code :

Usage :

import {connectedReduxRedirect} from 'redux-auth-wrapper/history4/redirect'

Error:

index.jsx:6 Uncaught Error: Cannot find module 'redux-auth-wrapper/history4/redirect'
    at webpackMissingModule (index.jsx:6)
    at Module.eval (index.jsx:6)
    at eval (index.jsx:87)
    at Module../src/App/Router/index.jsx (index.js:8039)
    at __webpack_require__ (index.js:726)
    at fn (index.js:101)
    at Module.eval (index.jsx:13)
    at eval (index.jsx:60)
    at Module../src/App/index.jsx (index.js:8134)
    at __webpack_require__ (index.js:726)

Question :
Do I have to import redux-auth-wrapper as dependency with certain tweak in webpack config ?
Or shall I have to build it locally & then link it to my project ?

I see some PR #204 talking about this, but I don't see it anywhere the changes that were committed, neither I am sure what build has been checked-in to npm registry.

Any help is much appreciated.

@droid001
Copy link

droid001 commented Apr 7, 2021

I have the same problem in a create-react-app project.

@droid001
Copy link

droid001 commented Apr 7, 2021

@v1p I got rid of the error by bumping up the version to 3.0.0 and got my npm version to 15.8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants