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

[Bug] Detected inconsistent metadata for the path "node_modules/react/index.js" #5

Closed
citrus327 opened this issue Apr 12, 2022 · 2 comments

Comments

@citrus327
Copy link
Collaborator

[plugin vite:dep-pre-bundle] Detected inconsistent metadata for the path "node_modules/react/index.js" when it was imported here:

    node_modules/mini-create-react-context/dist/esm/index.js:1:33:
      1 │ import React, { Component } from 'react';
        ╵                                  ~~~~~~~

  The original metadata for that path comes from when it was imported here:

    dep:react:1:23:
      1 │ export default require("../../node_modules/react/index.js");
        ╵                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  The difference in metadata is displayed below:
  
   {
  -  "pluginName": null,
  +  "pluginName": "vite:dep-pre-bundle",
   }
@citrus327
Copy link
Collaborator Author

check vitejs/vite#7683

@citrus327
Copy link
Collaborator Author

fixed in #6

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

1 participant