Giter VIP home page Giter VIP logo

Comments (3)

victorfeight avatar victorfeight commented on September 27, 2024

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.

christophercliff avatar christophercliff commented on September 27, 2024

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.

victorfeight avatar victorfeight commented on September 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.