mantrajs / mantra-cli

Command line interface for building Meteor apps with Mantra
MIT License
135 stars 34 forks source link

Install error with V0.4.0 : Cannot find module '../utils' #94

Closed philohelp closed 7 years ago

philohelp commented 7 years ago
mantra g component core:myEditor -c
module.js:327
    throw err;
    ^

Error: Cannot find module '../utils'
    at Function.Module._resolveFilename (module.js:325:15)
    at Function.Module._load (module.js:276:25)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (/usr/local/lib/node_modules/mantra-cli/dist/cli.js:13:14)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Module.require (module.js:353:17)

I had to downgrade to 0.4.0-rc.4 then everything works again.

terry-fei commented 7 years ago

me too

darkship commented 7 years ago

In cli.js import {readConfig} from '../utils'; should be import {readConfig} from './utils';

sungwoncho commented 7 years ago

@darkship could you do a PR?

ghost commented 7 years ago

Hi @sungwoncho , I created a PR for this one. Thanks.

sungwoncho commented 7 years ago

Fixed with #95. Released in 0.4.1.