Search code examples
node.jsdebuggingwebstorm

Webstorm 11 [TypeError: Buffer is not a function] in debugger


I updated webstorm from version 9 to version 11.0.2. And I have many errors [TypeError: Buffer is not a function] in console when I start to debug my project. For example error occured on this line:

var mongoose = require('mongoose');

and in this line:

var crc = require('crc').crc32;

This errors occured only in debugger. If I run my project using console everything is fine.

I use nodejs 5.2.0


Solution

  • This is a bug from WebStorm/IntelliJ IDEA' NodeJS plugin. An issue as been created for this debugger bug. The problem is recent and should be fixed soon.