Closed TanguyHefnaoui closed 5 years ago
You can probably ignore this warning:
WARNING in ./node_modules/@citation-js/plugin-wikidata/lib-mjs/index.js 95:11-29 "export 'parsePropType' (imported as 'prop') was not found in './prop'
That's a typo that will be fixed in the next release, but it's only used when exposing an internal API, which you probably don't use (the @wikidata/type
input format).
As for the errors, those are all JSON files so either they somehow were removed from the directory, Webpack/Vue doesn't resolve the file properly or it doesn't support loading JSON files. However, with a clean Webpack (no Vue) install it works fine for me.
You are right, my webpack was not resolving json files. I fixed the problem. Thanks
Citation.js v 0.4.5 Node v 8.12.0 OS Windows 10 I am working using vuejs.
I didn't do anything yet. I just try to include citation.js
const Cite = require('citation-js');
in one of my vue component and run webpack to compile my files.I get several errors out of it:
I also tried calling citation.js using
import Cite from 'citation-js
but get the same errors.