Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error trying to build app.js #44

Closed
johnsgill3 opened this issue Mar 8, 2017 · 2 comments
Closed

Error trying to build app.js #44

johnsgill3 opened this issue Mar 8, 2017 · 2 comments

Comments

@johnsgill3
Copy link

  1. Cloned the repo
  2. Changed to the flatmarket-example directory
  3. Ran npm install
  4. Tried to build the example and failed.
# ./node_modules/.bin/flatmarket src/flatmarket.json  --stripe-secret-key 12345 --component node_modules/flatmarket-theme-bananas/index.jsx 
(node:65846) DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
ReferenceError: Unknown plugin "flatmarket/packages/flatmarket-example/node_modules/flatmarket-cli/node_modules/babel-plugin-transform-react-jsx" specified in "base" at 0, attempted to resolve relative to "flatmarket/packages/flatmarket-example/node_modules/flatmarket-theme-bananas"
    at flatmarket/packages/flatmarket-example/node_modules/babel-core/lib/transformation/file/options/option-manager.js:180:17
    at Array.map (native)
    at Function.normalisePlugins (flatmarket/packages/flatmarket-example/node_modules/babel-core/lib/transformation/file/options/option-manager.js:158:20)
    at OptionManager.mergeOptions (flatmarket/packages/flatmarket-example/node_modules/babel-core/lib/transformation/file/options/option-manager.js:234:36)
    at OptionManager.init (flatmarket/packages/flatmarket-example/node_modules/babel-core/lib/transformation/file/options/option-manager.js:368:12)
    at compile (flatmarket/packages/flatmarket-example/node_modules/babel-register/lib/node.js:103:45)
    at loader (flatmarket/packages/flatmarket-example/node_modules/babel-register/lib/node.js:144:14)
    at Object.require.extensions.(anonymous function) [as .jsx] (flatmarket/packages/flatmarket-example/node_modules/babel-register/lib/node.js:154:7)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at getMarkup (flatmarket/packages/flatmarket-example/node_modules/flatmarket-cli/lib/index.js:171:21)
    at buildLayout (flatmarket/packages/flatmarket-example/node_modules/flatmarket-cli/lib/index.js:126:18)
    at tryCatcher (flatmarket/packages/flatmarket-example/node_modules/bluebird/js/main/util.js:26:23)

OSX
node -v = v7.7.1

Do I need to look at a different version of node? Am I doing something wrong?

@christophercliff
Copy link
Owner

Flatmarket requires node v4. This is a limited by the available AWS Lambda runtimes and also because I don't have time to keep up with latest node releases.

@johnsgill3
Copy link
Author

Ah thank you. I knew it was something dumb I was doing. I have updated my nvm to use 4.x and seems that flatmarket is working much better now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants