rapi-doc / RapiDoc

RapiDoc -WebComponent for OpenAPI Spec
https://rapidocweb.com
MIT License
1.71k stars 285 forks source link

Build error #8

Closed jmburnz closed 5 years ago

jmburnz commented 5 years ago

Hi, I started playing around today and wondering how you're building this, I just did npm install and npx webpack, mostly looks like its building but I get an error, any advice much appreciated, looks great! Btw I'm looking to use this with Drupal 8 and Apigee.

ERROR in ./src/utils/parse-utils.js 172:9
Module parse failed: Export 'convertSpec' is not defined (172:9)
You may need an appropriate loader to handle this file type.
|   });
| }
> export { convertSpec };
 @ ./src/rapidoc.js 11:0-46 314:4-15
 @ ./src/index.js
mrin9 commented 5 years ago

Hi, Thanks for reporting the issue. I use yarn install and yarn build to build it. This was not reporting any error. However when I used npm it gave me the same error that you listed in your issue.

I have now fixed it to work with npm and yarn. Let me know if this takes care of your situation.

get the latest code from github not npm. once I add couple of more enhancements, I will plan an npm release

jmburnz commented 5 years ago

Awesome, much appreciated!