question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

fomantic 2.75 compined with meteor-up fails and is missing "lodash._basetostring"

See original GitHub issue

Bug Report

I upgraded my semantic-ui package from 2.4.2 to fomantic-ui 2.7.5

Afterwards, I am unable to deploy my meteor application.

The change from semantic-ui 2.4.2 to fomantic-ui 2.7.5 is the only change.

I have tried to add lodash as an dependency to fomantic-ui with no change.

Steps to reproduce

Let me know if this is non-trivial and I will try to create a repo with the bare minimum´s

  1. npm install --save fomantic-ui
  2. mup deploy

Expected result

Actual result

Building App Bundle Locally

Started TaskList: Pushing Meteor App
[5.103.25.140] - Pushing Meteor App Bundle to the Server
[5.103.25.140] - Pushing Meteor App Bundle to the Server: SUCCESS
[5.103.25.140] - Prepare Bundle
[5.103.25.140] x Prepare Bundle: FAILED

	      ------------------------------------STDERR------------------------------------
	      The command '/bin/sh -c cd  /built_app/programs/server &&     npm install --unsafe-perm' returned a non-zero code: 1

	      ------------------------------------STDOUT------------------------------------
	      odules/meteor/babel-compiler/node_modules/babel-plugin-transform-property-literals
	babel-plugin-transform-regexp-constructors@0.4.3 /built_app/programs/server/npm/node_modules/meteor/babel-compiler/node_modules/babel-plugin-transform-regexp-constructors
	babel-plugin-transform-remove-console@6.9.4 /built_app/programs/server/npm/node_modules/meteor/babel-compiler/node_modules/babel-plugin-transform-remove-console
	babel-plugin-transform-remove-debugger@6.9.4 /built_app/programs/server/npm/node_modules/meteor/babel-compiler/node_modules/babel-plugin-transform-remove-debugger
	babel-plugin-transform-remove-undefined@0.5.0 /built_app/programs/server/npm/node_modules/meteor/babel-compiler/node_modules/babel-plugin-transform-remove-undefined
	babel-plugin-transform-simplify-comparison-operators@6.9.4 /built_app/programs/server/npm/node_modules/meteor/babel-compiler/node_modules/babel-plugin-transform-simplify-comparison-operators
	babel-plugin-transform-undefined-to-void@6.9.4 /built_app/programs/server/npm/node_modules/meteor/babel-compiler/node_modules/babel-plugin-transform-undefined-to-void
	babel-preset-meteor@7.3.4 /built_app/programs/server/npm/node_modules/meteor/babel-compiler/node_modules/babel-preset-meteor
	babel-preset-minify@0.5.0 /built_app/programs/server/npm/node_modules/meteor/babel-compiler/node_modules/babel-preset-minify
	lodash.isplainobject@4.0.6 /built_app/programs/server/npm/node_modules/meteor/babel-compiler/node_modules/lodash.isplainobject
	json5@2.1.0 /built_app/programs/server/npm/node_modules/meteor/babel-compiler/node_modules/json5
	meteor-babel@7.3.4 /built_app/programs/server/npm/node_modules/meteor/babel-compiler/node_modules/meteor-babel
	meteor-babel-helpers@0.0.3 /built_app/programs/server/npm/node_modules/meteor/babel-compiler/node_modules/meteor-babel-helpers
	reify@0.17.3 /built_app/programs/server/npm/node_modules/meteor/babel-compiler/node_modules/reify

	> core-js@2.6.8 postinstall /built_app/programs/server/npm/node_modules/core-js
	> node -e "try { require('./scripts/postinstall'); } catch (e) { /* empty */ }"

	Thank you for using core-js ( https://github.com/zloirock/core-js )!

	Please consider supporting of core-js on Open Collective or Patreon:
	> https://opencollective.com/core-js
	> https://www.patreon.com/zloirock

	Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)


	> fomantic-ui@2.7.5 install /built_app/programs/server/npm/node_modules/fomantic-ui
	> gulp install

	module.js:491
	    throw err;
	    ^

	Error: Cannot find module 'lodash._basetostring'
	    at Function.Module._resolveFilename (module.js:489:15)
	    at Function.Module._load (module.js:439:25)
	    at Module.require (module.js:517:17)
	    at require (internal/module.js:11:18)
	    at Object.<anonymous> (/built_app/programs/server/npm/node_modules/lodash.template/index.js:10:20)
	    at Module._compile (module.js:573:30)
	    at Object.Module._extensions..js (module.js:584:10)
	    at Module.load (module.js:507:32)
	    at tryModuleLoad (module.js:470:12)
	    at Function.Module._load (module.js:462:3)
	npm ERR! code ELIFECYCLE
	npm ERR! errno 1
	npm ERR! fomantic-ui@2.7.5 install: `gulp install`
	npm ERR! Exit status 1
	npm ERR!
	npm ERR! Failed at the fomantic-ui@2.7.5 install script.
	npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

	npm ERR! A complete log of this run can be found in:
	npm ERR!     /root/.npm/_logs/2019-05-29T10_06_41_073Z-debug.log
	npm ERR! code ELIFECYCLE
	npm ERR! errno 1
	npm ERR! meteor-dev-bundle@ install: `node npm-rebuild.js`
	npm ERR! Exit status 1
	npm ERR!
	npm ERR! Failed at the meteor-dev-bundle@ install script.
	npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

	npm ERR! A complete log of this run can be found in:
	npm ERR!     /root/.npm/_logs/2019-05-29T10_06_41_112Z-debug.log

	      ------------------------------------------------------------------------------

Screenshot (when possible)

Skærmbillede 2019-05-29 kl  12 17 37

Version

2.7.5

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
LarsBuurcommented, Jun 2, 2019

So I managed to fix this issue and for future references, my error was that I did

npm install --save fomantic-ui

which did install fomantic-ui and triggered the setup process, but messes up the meteor build system / meteor-up.

The solution was to just remove fomantic-ui from package.json and revert the lock file thus running

npm install fomantic-ui

fixed my problem.

Looking forward to test, use and contribute to fomantic-ui. Looking great!

0reactions
LarsBuurcommented, May 31, 2019

@hammy2899 - again thanks for taking the time. Meteor versions are pinned to specific node versions. Currently node v8.15.1

I will try to clean out the node_modules and lock file and report back. I am on a ferry with poor internet atm.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found