Comments (3)
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.
from flatmarket.
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
from flatmarket.
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.
from flatmarket.
Related Issues (20)
- Convert to JSON Schema v4
- flatmarket-aws returning unhandled errors as 200
- Scheme for publishing/archiving versioned cloudformation template.json and lambda.zip
- 502 (Bad Gateway) error trying to buy a product in test mode HOT 6
- Make sure errors returned by Stripe client are mapped to readable errors in Flatmarket
- HTTPS error? HOT 2
- Is the product amount updated? HOT 1
- Is this project still being developed? HOT 2
- Are you using Flatmarket in production? HOT 3
- Error trying to build app.js HOT 2
- Additional flatmarket-cli options HOT 3
- Dockerize
- Integrating a different static front-end? HOT 1
- multiple products in a single transaction HOT 1
- No app.js is created when running the script. HOT 1
- Differences in Philosophy and Features HOT 3
- Test site: Invalid API key provided HOT 1
- cant find flatmarket file HOT 1
- Error: Cannot find module '/node_modules/flatmarket-cli/node_modules/flatmarket-theme-bananas/index.jsx'
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flatmarket.