extend-chrome / ts-react-boilerplate

Chrome extension boilerplate with TypeScript and React
MIT License
72 stars 14 forks source link

Unable to run or build. #4

Closed satoshigangopadhyay closed 3 years ago

satoshigangopadhyay commented 3 years ago

Google search terms

Rollup "let outFile = options?.file;" syntax error.

Describe the bug

npm start run and npm build fail with the following error message:

\node_modules\rollup-plugin-zip\dist\index.cjs.js:44
[!] SyntaxError: Unexpected token '.'
let outFile = options?.file;

How do we reproduce?

Use npm run start or npm build after using npx create-react-crx to create a project and cd-ing to it.

Expected behavior

Successful build process.

Actual behavior

Failure in the build process.

Screenshots

Please complete the following information:

Additional context

create-react-crx breaks with @yaowang908 fork as well.

satoshigangopadhyay commented 3 years ago

Opened a PR to fix this issue. Hope everyone has a great day.

wisdom_of_the_ancients