Rake assets:precompile

rake assets:precompile

WARN You specified server rendering JS file: app/assets/webpack/server-bundle.js, but it cannot be read. You may set the server_bundle_js_file in your configuration to be “” to avoid this warning
You specified server rendering JS file: app/assets/webpack/server-bundle.js, but it cannot be read. You may set the server_bundle_js_file in your configuration to be “” to avoid this warning
DEPRECATION WARNING: [paperclip] [deprecation] AWS SDK v1 has been deprecated in paperclip 5. Please consider upgrading to AWS 2 before upgrading paperclip. (called from class:Person at /Users/henrique/sharetribe/app/models/person.rb:163)
cd client && npm run build:client

@ build:client /Users/henrique/sharetribe/client
webpack --config webpack.client.config.js

/Users/henrique/sharetribe/client/webpack.client.config.js:8
const { replacePercentChar } = require(‘./webpackConfigUtil’);
^

SyntaxError: Unexpected token {
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:414:25)
at Object.Module._extensions…js (module.js:442:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:313:12)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at module.exports (/Users/henrique/sharetribe/client/node_modules/webpack/bin/convert-argv.js:80:13)
at Object. (/Users/henrique/sharetribe/client/node_modules/webpack/bin/webpack.js:39:40)
at Module._compile (module.js:435:26)

npm ERR! Darwin 15.5.0
npm ERR! argv “/usr/local/bin/node” “/usr/local/bin/npm” “run” “build:client”
npm ERR! node v4.2.4
npm ERR! npm v3.10.6
npm ERR! code ELIFECYCLE
npm ERR! @ build:client: webpack --config webpack.client.config.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ build:client script ‘webpack --config webpack.client.config.js’.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! webpack --config webpack.client.config.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs
npm ERR! Or if that isn’t available, you can get their info via:
npm ERR! npm owner ls
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /Users/henrique/sharetribe/client/npm-debug.log
rake aborted!
Command failed with status (1): [cd client && npm run build:client…]
/Users/henrique/sharetribe/lib/tasks/assets.rake:21:in block (2 levels) in <top (required)>' /Users/henrique/.rvm/gems/ruby-2.3.1/bin/ruby_executable_hooks:15:in eval’
/Users/henrique/.rvm/gems/ruby-2.3.1/bin/ruby_executable_hooks:15:in `’
Tasks: TOP => assets:precompile => assets:compile_environment => assets:webpack
(See full trace by running task with --trace)

Resolved with this! → https://www.sharetribe.com/community/t/problems-with-installation-read-this/79/5

2 Likes