assuncaocharles / assuncaocharles/create-react-app-parcel-typescript

Error: Cannot find module 'autoprefixer'

Open
#9 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
59
Forks
5
PR merge metrics
No merged PRs in 30d

Description

For starters, thanks for putting this package together.

"npm run build" runs "react-scripts-parcel build" which executes `const autoprefixer = require('autoprefixer');` in parcel.config.prod.js

That produces the error `Error: Cannot find module 'autoprefixer'` because "autoprefixer" was not added as a dependency of create-react-app-parcel-typescript.

I can add it to my project, but this could lead to version issues. It would be cleaner if it was updated in this repo.

Thanks,
Bruno

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with parcel.config.prod.js and the `npm run build` entry point described in the issue, then inspect the repository's dependency manifest for the missing autoprefixer package. Done means the dependency is declared by this repository and `npm run build` no longer fails with `Cannot find module 'autoprefixer'`.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
build-system
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.