Skip to content
This repository

An error occured: Cannot find module 'uglify-js' #137

wants to merge 1 commit into from

2 participants

Changwoo Park Benjamin Arthur Lupton
Changwoo Park

Docpad requires 'uglify-js' module. I got a message "An error occured: Cannot find module 'uglify-js'".

Changwoo Park pismute Add uglify-js for dependencies
Docpad requires 'uglify-js'
Benjamin Arthur Lupton

Very strange, I'd say the fix for this would actually be finding out whatever requires it and kill it - as we should keep the core to as minimal dependencies as possible (more dependencies, more risk of failure on different environments).

The culprit is perhaps the buildr plugin - which for now can be deleted.

Would you be able to look into this further, by tracking down the violator? If so, that'll be awesome!

Changwoo Park

Thank you.

Ok, I will check it.

Changwoo Park

It's Very strange. I updated all of modules. then I got same error message from module in autoupdate Plugin.

but I clone again. there are no error.:)

Thank you.

Benjamin Arthur Lupton

Figured out what this was. config.enabledPlugins if set by your website, would not be merged in with docpad's enabled plugins, instead it would overwrite it, thus enabling the disabled-by-default plugins.

This will be fixed in the upcoming version of docpad.

Benjamin Arthur Lupton balupton reopened this
Benjamin Arthur Lupton

Fixed in the just released v3.3.0 :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Feb 18, 2012
Changwoo Park pismute Add uglify-js for dependencies
Docpad requires 'uglify-js'
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 3 additions and 2 deletions. Show diff stats Hide diff stats

  1. +3 2 package.json
5 package.json
@@ -60,7 +60,8 @@
60 60 "js2coffee": "0.1.x",
61 61 "underscore": "1.3.x",
62 62 "npm": ">=1.0.x",
63   - "semver": "1.0.x"
  63 + "semver": "1.0.x",
  64 + "uglify-js": "1.2.x"
64 65 },
65 66 "devDependencies": {
66 67 "request": "2.9.x",
@@ -79,4 +80,4 @@
79 80 "test": "node ./node_modules/mocha/bin/mocha --reporter spec --ui bdd --ignore-leaks --growl"
80 81 },
81 82 "main": "./lib/"
82   -}
  83 +}

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.