Open radixhound opened 6 years ago
Confirming the same issue on my end. Seems to be a webpack peer dependency issue. Some plugins older versions, some want newer versions. I'm going to try to get this working by using all the listed dependency versions, but an update by the author would be really helpful.
I tested this and couldn't recreate. This runs without errors:
$ node --version && npm --version
v8.9.0
5.5.1
$ mkdir flatmarket-test && cd flatmarket-test
$ npm init --yes
$ npm install --save flatmarket-cli
$ node_modules/.bin/flatmarket --help
Thank you for the update. Let me walk you through my setup, so I can show you the error.
When trying to use node v.8.9.0 (npm v.5.5.1) as you recommended, flatmarket-cli installs successfully, however there is an error when trying to build the app's theme via ./node_modules/.bin/flatmarket -c ./node_modules/flatmarket-cli/node_modules/flatmarket-theme-bananas/index.jsx -d pay ./src/flatmarket.json command. It complains " Unknown plugin babel-plugin-transform-react-jsx-source" and refuses to build the theme.
When I switch to node v4.6.2 (npm v.2.15.11), the app refuses to build because of conflicting webpack peerDependency issues. flatmarket-cli expects an older version of webpack, but certain dependencies expect a newer version which causes the build to fail. This is solved by installing the following older dependencies: css-loader-0.18.0.tar.gz style-loader-0.12.3.tar.gz (these two for the development server) expose-loader-0.7.0.tgz webpack-1.11.0.tar.gz (these three for the flatmarket-cli) webpack-dev-server-1.11.0.tar.gz
With these dependencies installed (via npm install --save), then flatmarket-cli installs successfully under node v4.6.2, and the bananas theme successful compiles. However, upon testing the theme in the browser, I noticed that the app.js isn't communicating with Heroku well.
At this point, my payment portal is loaded and I can successfully create a token with the Stripe checkout form. Update: I'll move this issue to the heroku-server page, as recently I tried creating a token with Stripe and processing the charge with flatmarket and flatmarket-server and the test charge processed successfully on the Stripe dashboard, unlike before. This leads me to believe my bug lies in the flatmarket-heroku server.
Tried installing the CLI and failed because my version of node was 6.x. Switched to
v4.8.3
vianvm
...relevant parts of the log which is really long...