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

Vite Error: (0 , _memoizeOne.default) is not a function #120

Open
Jiangultimo opened this issue Jun 1, 2021 · 1 comment
Open

Vite Error: (0 , _memoizeOne.default) is not a function #120

Jiangultimo opened this issue Jun 1, 2021 · 1 comment

Comments

@Jiangultimo
Copy link

[email protected]
[email protected]

when use

import ReactSpeedometer from 'react-d3-speedometer'

there is an error

Uncaught TypeError: (0 , _memoizeOne.default) is not a function
    at ../../react-d3-speedometer/dist/core/config/configure.js (configure.js:1)
    at __require2 (chunk-RDZ5XA5N.js?v=56225ce0:17)
    at ../../react-d3-speedometer/dist/core/render/index.js (index.js:1)
    at __require2 (chunk-RDZ5XA5N.js?v=56225ce0:17)
    at ../../react-d3-speedometer/dist/index.js (index.js:1)
    at __require2 (chunk-RDZ5XA5N.js?v=56225ce0:17)
    at dep:react-d3-speedometer:1

I downloaded the source code, and update the memoize-one to the lastest version
use try-build to build a dist, link it to my project, still has the same error

@Jiangultimo Jiangultimo changed the title wite vite, there is an error (0 , _memoizeOne.default) is not a function with vite, there is an error (0 , _memoizeOne.default) is not a function Jun 1, 2021
@palerdot palerdot changed the title with vite, there is an error (0 , _memoizeOne.default) is not a function Vite Error: (0 , _memoizeOne.default) is not a function Jun 2, 2021
@palerdot
Copy link
Owner

palerdot commented Jun 2, 2021

Hi @EtaJx,

I'm new to Vite, and I'm not sure if this is exactly related to vite or some missing es6 module importing problem of the build setup. I will update here once I found out the issue with vite setup.

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