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

14 Errors #6

Open
Trisystema opened this issue Jan 18, 2022 · 2 comments
Open

14 Errors #6

Trisystema opened this issue Jan 18, 2022 · 2 comments

Comments

@Trisystema
Copy link

Trisystema commented Jan 18, 2022

When using this code:

import "./App.css";

import React from "react";
import { Bibliography } from "react-citeproc";
import raw from "raw.macro";

const App = () => {
  const style = raw("./style.csl");
  const locale = raw("./locale.xml");

  const items = {
    "Item-1": {
      id: "Item-1",
      type: "book",
      title: "Digital Typography",
      publisher: "Center for the Study of Language and Information",
      "number-of-pages": "685",
      source: "Amazon.com",
      ISBN: "1575860104",
      author: [
        {
          family: "Knuth",
          given: "Donald E.",
        },
      ],
      issued: {
        "date-parts": [["1998", 6, 1]],
      },
    },
  };

  return <Bibliography style={style} locale={locale} items={items} />;
};

export default App;

I get 14 errors regarding "node_modules\react-citeproc\build...", all of them saying "Module not found: Error: Can't resolve 'babel-runtime/....". Any solution to this?

@robindemourat
Copy link
Owner

Hello @Trisystema, can you try to add babel-runtime to your project and tell me if this solves the issue ? To do so, run at your project's root npm install --save @babel/runtime or yarn add @babel/runtime . If this works I'll look at the code of this lib to fix that unregistered dependency. Thanks

@Trisystema
Copy link
Author

Trisystema commented Jan 19, 2022

Hi and thanks for the response!
Unfortunately no, same issues persist.
Here's the response:

ERROR in ../../node_modules/react-citeproc/build/components/Bibliography.js 7:12-56
Module not found: Error: Can't resolve 'babel-runtime/core-js/object/keys' in '...\node_modules\react-citeproc\build\components'
 @ ../../node_modules/react-citeproc/build/index.js 8:20-56 
 @ ./src/Book.js 6:0-46 30:30-42
 @ ./src/BookList.js 8:0-29 25:38-42
 @ ./src/App.js 5:0-37 12:36-44
 @ ./src/index.js 7:0-24 11:33-36

ERROR in ../../node_modules/react-citeproc/build/components/Bibliography.js 11:22-78
Module not found: Error: Can't resolve 'babel-runtime/core-js/object/get-prototype-of' in '...\node_modules\react-citeproc\build\components'        
 @ ../../node_modules/react-citeproc/build/index.js 8:20-56 
 @ ./src/Book.js 6:0-46 30:30-42
 @ ./src/BookList.js 8:0-29 25:38-42
 @ ./src/App.js 5:0-37 12:36-44
 @ ./src/index.js 7:0-24 11:33-36

ERROR in ../../node_modules/react-citeproc/build/components/Bibliography.js 15:23-70
Module not found: Error: Can't resolve 'babel-runtime/helpers/classCallCheck' in '...\node_modules\react-citeproc\build\components'
 @ ../../node_modules/react-citeproc/build/index.js 8:20-56 
 @ ./src/Book.js 6:0-46 30:30-42
 @ ./src/BookList.js 8:0-29 25:38-42
 @ ./src/App.js 5:0-37 12:36-44
 @ ./src/index.js 7:0-24 11:33-36

ERROR in ../../node_modules/react-citeproc/build/components/Bibliography.js 19:20-64
Module not found: Error: Can't resolve 'babel-runtime/helpers/createClass' in '...\node_modules\react-citeproc\build\components'
 @ ../../node_modules/react-citeproc/build/index.js 8:20-56 
 @ ./src/Book.js 6:0-46 30:30-42
 @ ./src/BookList.js 8:0-29 25:38-42
 @ ./src/App.js 5:0-37 12:36-44
 @ ./src/index.js 7:0-24 11:33-36

ERROR in ../../node_modules/react-citeproc/build/components/Bibliography.js 23:34-92
Module not found: Error: Can't resolve 'babel-runtime/helpers/possibleConstructorReturn' in '...\node_modules\react-citeproc\build\components'      
 @ ../../node_modules/react-citeproc/build/index.js 8:20-56 
 @ ./src/Book.js 6:0-46 30:30-42
 @ ./src/BookList.js 8:0-29 25:38-42
 @ ./src/App.js 5:0-37 12:36-44
 @ ./src/index.js 7:0-24 11:33-36

ERROR in ../../node_modules/react-citeproc/build/components/Bibliography.js 27:17-58
Module not found: Error: Can't resolve 'babel-runtime/helpers/inherits' in '...\node_modules\react-citeproc\build\components'
 @ ../../node_modules/react-citeproc/build/index.js 8:20-56 
 @ ./src/Book.js 6:0-46 30:30-42
 @ ./src/BookList.js 8:0-29 25:38-42
 @ ./src/App.js 5:0-37 12:36-44
 @ ./src/index.js 7:0-24 11:33-36

ERROR in ../../node_modules/react-citeproc/build/components/ReferencesManager.js 7:16-56
Module not found: Error: Can't resolve 'babel-runtime/helpers/extends' in '...\node_modules\react-citeproc\build\components'
 @ ../../node_modules/react-citeproc/build/index.js 12:25-66 @ ./src/Book.js 6:0-46 30:30-42
 @ ./src/BookList.js 8:0-29 25:38-42
 @ ./src/App.js 5:0-37 12:36-44
 @ ./src/index.js 7:0-24 11:33-36

ERROR in ../../node_modules/react-citeproc/build/components/ReferencesManager.js 11:12-56
Module not found: Error: Can't resolve 'babel-runtime/core-js/object/keys' in '...\node_modules\react-citeproc\build\components'
 @ ../../node_modules/react-citeproc/build/index.js 12:25-66 @ ./src/Book.js 6:0-46 30:30-42
 @ ./src/BookList.js 8:0-29 25:38-42
 @ ./src/App.js 5:0-37 12:36-44
 @ ./src/index.js 7:0-24 11:33-36

ERROR in ../../node_modules/react-citeproc/build/components/ReferencesManager.js 15:22-78
Module not found: Error: Can't resolve 'babel-runtime/core-js/object/get-prototype-of' in '...\node_modules\react-citeproc\build\components'        
 @ ../../node_modules/react-citeproc/build/index.js 12:25-66 @ ./src/Book.js 6:0-46 30:30-42
 @ ./src/BookList.js 8:0-29 25:38-42
 @ ./src/App.js 5:0-37 12:36-44
 @ ./src/index.js 7:0-24 11:33-36

ERROR in ../../node_modules/react-citeproc/build/components/ReferencesManager.js 19:23-70
Module not found: Error: Can't resolve 'babel-runtime/helpers/classCallCheck' in '...\node_modules\react-citeproc\build\components'
 @ ../../node_modules/react-citeproc/build/index.js 12:25-66 @ ./src/Book.js 6:0-46 30:30-42
 @ ./src/BookList.js 8:0-29 25:38-42
 @ ./src/App.js 5:0-37 12:36-44
 @ ./src/index.js 7:0-24 11:33-36

ERROR in ../../node_modules/react-citeproc/build/components/ReferencesManager.js 23:20-64
Module not found: Error: Can't resolve 'babel-runtime/helpers/createClass' in '...\node_modules\react-citeproc\build\components'
 @ ../../node_modules/react-citeproc/build/index.js 12:25-66 @ ./src/Book.js 6:0-46 30:30-42
 @ ./src/BookList.js 8:0-29 25:38-42
 @ ./src/App.js 5:0-37 12:36-44
 @ ./src/index.js 7:0-24 11:33-36

ERROR in ../../node_modules/react-citeproc/build/components/ReferencesManager.js 27:34-92
Module not found: Error: Can't resolve 'babel-runtime/helpers/possibleConstructorReturn' in '...\node_modules\react-citeproc\build\components'      
 @ ../../node_modules/react-citeproc/build/index.js 12:25-66 @ ./src/Book.js 6:0-46 30:30-42
 @ ./src/BookList.js 8:0-29 25:38-42
 @ ./src/App.js 5:0-37 12:36-44
 @ ./src/index.js 7:0-24 11:33-36

ERROR in ../../node_modules/react-citeproc/build/components/ReferencesManager.js 31:17-58
Module not found: Error: Can't resolve 'babel-runtime/helpers/inherits' in '...\node_modules\react-citeproc\build\components'
 @ ../../node_modules/react-citeproc/build/index.js 12:25-66 @ ./src/Book.js 6:0-46 30:30-42
 @ ./src/BookList.js 8:0-29 25:38-42
 @ ./src/App.js 5:0-37 12:36-44
 @ ./src/index.js 7:0-24 11:33-36

ERROR in ../../node_modules/react-citeproc/build/utils/makeBibliography.js 7:12-56
Module not found: Error: Can't resolve 'babel-runtime/core-js/object/keys' in '...\node_modules\react-citeproc\build\utils'
 @ ../../node_modules/react-citeproc/build/index.js 16:24-59 @ ./src/Book.js 6:0-46 30:30-42
 @ ./src/BookList.js 8:0-29 25:38-42
 @ ./src/App.js 5:0-37 12:36-44
 @ ./src/index.js 7:0-24 11:33-36

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