Error: Cannot find module '/node_modules/flatmarket-cli/node_modules/flatmarket-theme-bananas/index.jsx'
Im using the build command
./node_modules/.bin/flatmarket -c ./node_modules/flatmarket-cli/node_modules/flatmarket-theme-bananas/index.jsx -d pay ./src/flatmarket.json
node -v v10.19.0 npm -v 6.14.4
the error is:
Error: Cannot find module '/node_modules/flatmarket-cli/node_modules/flatmarket-theme-bananas/index.jsx' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15) at Function.Module._load (internal/modules/cjs/loader.js:562:25) at Module.require (internal/modules/cjs/loader.js:692:17)
if I try this other build command it won't work
./node_modules/.bin/flatmarket ./src/flatmarket.json \
--component ./node_modules/flatmarket-theme-bananas/index.jsx
ReferenceError: Unknown plugin "/mnt/c/Users/serod/Documents/xan/tienda/node_modules/flatmarket-cli/node_modules/babel-plugin-transform-react-jsx" specified in "base" at 0, attempted to resolve relative to "/mnt/c/Users/serod/Documents/xan/tienda/node_modules/flatmarket-theme-bananas"
I've been trying to follow a guide from Netlify, but the only thing I've manage to do is make it work using the "--dev and stripe_key" arguments.
I've even asked for help in Netlify forum about this https://community.netlify.com/t/flatmarket-fails-at-deploy/19868 Some other issues I have with this project is that even if I make it work locally using the --dev and stripe key arguments in the build command, they stripe version needs to be updated and emails are not being sent when a purchase is made, but those are minor issues if I can't make it launch it on Netlify.
I'm not an expert but I've been trying to install in these 4-5 days different versions of nodejs and I still can't find the right combination to make it work. Looking at all those other issues created in 2016, it feels like this project is not really usable in 2020.
It's such a pity because I've seen it work and it's a really awesome UI and simplistic way to make small purchases, but the lack of long term support and maintainability makes me want to try another alternative for this. I really hope I'm wrong and people is still using this nowadays!