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.

TypeError: ast.remove is not a function

See original GitHub issue

Sir, I’ve met this error with all CSS files and with both custom and default configure:

(node:25107) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: ast.remove is not a function
(node:25107) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

This error only occurs in v4.0.1, not with v3.1.7.

My environment:

node v7.7.1
arch linux 4.9.11

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:14
  • Comments:23 (8 by maintainers)

github_iconTop GitHub Comments

9reactions
ryanbowdencommented, Aug 14, 2017

I am having the same issue and changing "eof-newline": false, to true fixes the fault. Hope that helps finding the issue.

5reactions
mfeckiecommented, Jun 27, 2017

Should this

https://github.com/csscomb/csscomb.js/blob/dev/src/options/block-indent.js#L48

ast.remove(i);

not be

ast.removeChild(i); ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Uncaught TypeError: element.remove is not a function
This is because there can be multiple elements with the same tag. var myobjArr = document.getElementsByTagName(selector); myobjArr[0].remove();.
Read more >
TypeError: "x" is not a function - JavaScript - MDN Web Docs
The JavaScript exception "is not a function" occurs when there was an attempt to call a value from a function, but the value...
Read more >
Uncaught TypeError: i(…).remove is not a function
Upgraded to 2.9.4 and got this error: Uncaught TypeError: i(…).remove is not a function at s.createPage (sbi-scripts.min.js?ver=2.9.4:1)
Read more >
ast — Abstract Syntax Trees — Python 3.11.1 documentation
When an expression, such as a function call, appears as a statement by itself with its return value not used or stored, it...
Read more >
The 10 Most Common JavaScript Issues Developers Face
Uncaught TypeError: undefined is not a function ... Interestingly, even if element is removed from the DOM, the circular self-reference above would prevent ......
Read more >

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