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

Error: Cannot find module 'D:\charts\node_modules\@react-financial-charts\annotations\lib\Annotate' imported from D:\charts\node_modules\@react-financial-charts\annotations\lib\index.js #800

Open
AmalRichwin-AT opened this issue Oct 28, 2021 · 5 comments

Comments

@AmalRichwin-AT
Copy link

When i have installed the package and tried to run, it throwed this @error.

Error: Cannot find module 'D:\charts\node_modules@react-financial-charts\annotations\lib\Annotate' imported from D:\charts\node_modules@react-financial-charts\annotations\lib\index.js

@clide7029
Copy link

I am having this same issue, except I can load the page once fine but then on reload the error will throw.

@rnnyrk
Copy link

rnnyrk commented Apr 26, 2022

Same issue for me after reload

@c9s
Copy link

c9s commented May 13, 2022

Same here

@qunaxis
Copy link

qunaxis commented May 14, 2022

Solution for create-react-app provided environment worked for me

  1. Install craco package (https://github.com/gsoft-inc/craco) if it didn't installed before
  2. Insert following config into craco.config.js file (or extend it):
module.exports = {
  webpack: {
    configure: {
      module: {
        rules: [
          {
            test: /\.m?js/,
            resolve: {
              fullySpecified: false,
            },
          },
        ]
      }
    }
  }
}

P.S. It's just a little overriding of default webpack 5 configuration provided by [email protected] (my currently installed version).

@andyevers
Copy link

I had this same issue on my Next.js app while using react-financial charts and was able to solve it with the solution by adamhwang here: react-financial/react-financial-charts#606

You'll need this package: https://github.com/martpie/next-transpile-modules

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

6 participants