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?
When using this code:
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?