This repository has been archived by the owner on Mar 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
TypeError: this[statement.type] is not a function
#199
Comments
I tracked it down to |
dividedmind
added a commit
that referenced
this issue
Mar 3, 2023
appmap-agent-js uses @babel/parser to parse the ECMAScript code for transformation; the output generated by that library is not 100% estree-compliant [1]. It has an `estree` plugin that reverts the deviations; however, by default not all of them are supported (apparently for @babel/parser's own backward compatibility reasons). Fortunately it has a config setting that enables them. One of these differences is that the standard node type of PropertyDefinition is called ClassProperty instead, which made the transformer unable to correctly handle ES classes. [1] https://babeljs.io/docs/babel-parser#output Fixes #199
dividedmind
added a commit
that referenced
this issue
Mar 3, 2023
appmap-agent-js uses @babel/parser to parse the ECMAScript code for transformation; the output generated by that library is not 100% estree-compliant [1]. It has an `estree` plugin that reverts the deviations; however, by default not all of them are supported (apparently for @babel/parser's own backward compatibility reasons). Fortunately it has a config setting that enables them. One of these differences is that the standard node type of PropertyDefinition is called ClassProperty instead, which made the transformer unable to correctly handle ES classes. [1] https://babeljs.io/docs/babel-parser#output Fixes #199
dividedmind
added a commit
that referenced
this issue
Mar 3, 2023
appmap-agent-js uses @babel/parser to parse the ECMAScript code for transformation; the output generated by that library is not 100% estree-compliant [1]. It has an `estree` plugin that reverts the deviations; however, by default not all of them are supported (apparently for @babel/parser's own backward compatibility reasons). Fortunately it has a config setting that enables them. One of these differences is that the standard node type of PropertyDefinition is called ClassProperty instead, which made the transformer unable to correctly handle ES classes. [1] https://babeljs.io/docs/babel-parser#output Fixes #199
dividedmind
added a commit
that referenced
this issue
Mar 3, 2023
appmap-agent-js uses @babel/parser to parse the ECMAScript code for transformation; the output generated by that library is not 100% estree-compliant [1]. It has an `estree` plugin that reverts the deviations; however, by default not all of them are supported (apparently for @babel/parser's own backward compatibility reasons). Fortunately it has a config setting that enables them. One of these differences is that the standard node type of PropertyDefinition is called ClassProperty instead, which made the transformer unable to correctly handle ES classes. [1] https://babeljs.io/docs/babel-parser#output Fixes #199
appland-release
pushed a commit
that referenced
this issue
Mar 3, 2023
## [13.5.2](v13.5.1...v13.5.2) (2023-03-03) ### Bug Fixes * Support class features when transforming source code ([46f03b0](46f03b0)), closes [#199](#199)
🎉 This issue has been resolved in version 13.5.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I got the following error trying to map
@appland/models
as of a41b670ae170303cc46f74a2d6afb535eaa9dbd9:The text was updated successfully, but these errors were encountered: