Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: docs, added create react app template for post css to be added… #30

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

reubenae
Copy link

@reubenae reubenae commented Oct 1, 2020

… to as an example

Making a start on #22 - not ready for review yet

What Changed

Example project was added to a new folder examples/modern

Why

#22

Todo:

  • Add tests
  • Add docs
  • Add yourself to contributors (run yarn contributors:add)

@reubenae
Copy link
Author

reubenae commented Oct 1, 2020

Getting this error:

TypeError: require(...) is not a function
    at Object.<anonymous> (/Users/revans8/dev/postcss-themed/examples/modern/postcss.config.js:14:34)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at module.exports.moduleId (/Users/revans8/dev/postcss-themed/examples/modern/node_modules/cosmiconfig/node_modules/import-fresh/index.js:28:9)
    at loadJs (/Users/revans8/dev/postcss-themed/examples/modern/node_modules/cosmiconfig/dist/loaders.js:9:18)

Bit stuck on how to get started with postcss. Which on one hand validates the value in this PR, but on the other hand is quite frustrating. Grateful for any hints @tylerkrupicka

@tylerkrupicka
Copy link
Contributor

Thanks for taking a look at this!

Not 100% sure, would have to take a look later. Some ideas off the top of my head:

You're using a newer version of PostCSS that just came out, I haven't used it yet. I think plugins are a little different so maybe downgrading might help?

Maybe a different node version will help? I think I use 12.x.

I'd look at the PostCSS docs for using the config.js format vs config.json and see if something changed.

Thanks again!

@tylerkrupicka
Copy link
Contributor

@hipstersmoothie have you ever seen this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants