kiliman / tailwindui-crawler

tailwindui-crawler downloads the component HTML files locally
MIT License
767 stars 97 forks source link

Latest version of crawler broken #22

Closed connecteev closed 4 years ago

connecteev commented 4 years ago

After a fresh git pull, this is what I see:

$ yarn start yarn run v1.22.0 $ node index.js šŸ” Logging into tailwindui.com... āœ… Success!

šŸ—‚ Output is ../tailwindui_output ā³ Processing /components/marketing/sections/heroes... ā€¼ļø /TAILWINDUI/tailwindui_crawler_kiliman/crawler/transformers/prefixClasses/tailwind-classes.js:2 export default { ^^^^^^ SyntaxError: Unexpected token 'export' at wrapSafe (internal/modules/cjs/loader.js:1067:16) at Module._compile (internal/modules/cjs/loader.js:1115:27) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1171:10) at Module.load (internal/modules/cjs/loader.js:1000:32) at Function.Module._load (internal/modules/cjs/loader.js:899:14) at Module.require (internal/modules/cjs/loader.js:1040:19) at require (internal/modules/cjs/helpers.js:72:18) at Object. (/TAILWINDUI/tailwindui_crawler_kiliman/crawler/transformers/prefixClasses/index.js:3:21) at Module._compile (internal/modules/cjs/loader.js:1151:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1171:10) āœØ Done in 1.78s.

kiliman commented 4 years ago

Sorry. Merged in a PR without testing it. The syntax works fine for the browser, but not for node.js.

Anyway, this is fixed.

connecteev commented 4 years ago

Verified this works now. Thanks for the quick update!