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

ReferenceError: __slice is not defined #3

Closed
jackwilsdon opened this issue May 25, 2015 · 2 comments
Closed

ReferenceError: __slice is not defined #3

jackwilsdon opened this issue May 25, 2015 · 2 comments
Assignees

Comments

@jackwilsdon
Copy link

I am getting the following error when trying to use pretty-logger:

node_modules\pretty-logger\pretty-logger.js:33
         msg = arguments[0], args = 2 <= arguments.length ? __slice.call(argum
                                                                    ^
ReferenceError: __slice is not defined
    at Logger.PrettyLogger.BasicLogger.info (node_modules\pretty-logger\pretty-logger.js:33:76)
    at Object.<anonymous> (main.js:14:5)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Function.Module.runMain (module.js:501:10)
    at startup (node.js:129:16)
    at node.js:814:3

And here is the code I'm using:

var Logger = require('pretty-logger');

var loggerConfig = {
    showTimestamp: true,
    prefix: "[" + process.pid.toString() + "]"
};

var log = new Logger(loggerConfig);

log.info("Hello, %s!", "World");
@LukePammant
Copy link
Owner

I have found a solution for this and will push it out soon.

@LukePammant
Copy link
Owner

@jackwilsdon, thank you for your detailed issue report.

I have fixed the issue and pushed it up to GitHub and released a version 1.2 on NPM. Please feel free to download and test.

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