jackreichert / a-wp-react-redux-theme

WordPress theme built with ReactJS and Redux calling WP-REST-API for content
GNU General Public License v3.0
332 stars 100 forks source link

Loaded theme and demo content but nothing showing #9

Closed dirtandrust closed 6 years ago

dirtandrust commented 6 years ago

Hi, loving the theme so far and it's a great place to start! Docs say it works out of the box but it's not showing content, only empty boxes, is there something I missed in the set up process? See screenshot to see what I'm seeing.

Using:

screen shot 2018-01-25 at 12 43 48 pm

Note: It does load at http://localhost:8888/ without the directory in the url, but obviously I can't have it work this way because I have other sites to work on (my htaccess is set to default to the directory which in my case is http://localhost:8888/reactwpapi)

jackreichert commented 6 years ago

Hmm, I just tested it with a fresh install + MAMP, and am not able to reproduce.

That means I need more info from you...

Do you have any errors in the console?

dirtandrust commented 6 years ago

Hi yes here’s the error I get when I run webpack in the theme:

nathanielflick@dirtandrust /Applications/MAMP/htdocs/reactwpapi/wp-content/themes/a-wp-react-redux-theme-master (master) $ webpack /Applications/MAMP/htdocs/reactwpapi/node_modules/extract-text-webpack-plugin/index.js:114 throw new Error("Breaking change: ExtractTextPlugin now only takes a single argument. Either an options " + ^

Error: Breaking change: ExtractTextPlugin now only takes a single argument. Either an options object or the name of the result file. Example: if your old code looked like this: new ExtractTextPlugin('css/[name].css', { disable: false, allChunks: true })

You would change it to: new ExtractTextPlugin({ filename: 'css/[name].css', disable: false, allChunks: true })

The available options are: filename: string allChunks: boolean disable: boolean

at new ExtractTextPlugin (/Applications/MAMP/htdocs/reactwpapi/node_modules/extract-text-webpack-plugin/index.js:114:9)
at Object.<anonymous> (/Applications/MAMP/htdocs/reactwpapi/wp-content/themes/a-wp-react-redux-theme-master/webpack.config.js:47:9)
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Module.require (module.js:367:17)
at require (internal/module.js:20:19)
at requireConfig (/usr/local/lib/node_modules/webpack/bin/convert-argv.js:96:18)
at /usr/local/lib/node_modules/webpack/bin/convert-argv.js:109:17

Cheers

Nathaniel Flick Dirt and Rust, Limited (NZ) nat@dirtandrust.com dirtandrust.com Skype: nathaniel.flick

On 27/01/2018, at 8:48 PM, Jack Reichert notifications@github.com wrote:

Hmm, I just tested it with a fresh install + MAMP, and am not able to reproduce.

That means I need more info from you...

Do you have any errors in the console?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jackreichert/a-wp-react-redux-theme/issues/9#issuecomment-361010170, or mute the thread https://github.com/notifications/unsubscribe-auth/ABnzOI7HcrDrdAkT4y-6ZbE2IkArCjNMks5tO32PgaJpZM4Rsuh6.

jackreichert commented 6 years ago

Thanks Nathaniel,

That was very helpful. I changed the offending line here

Let me know if you continue to have issues.

dirtandrust commented 6 years ago

This is awesome, thank you!

Are you able to fix the home logo url so it works on any domain, rather than pointing to "/"?