This error message indicates that the property 'range' of the 'node' object is undefined or null. This means it doesn't have the 'start' property you're trying to destructure. This could be due to passing an invalid or incomplete syntax tree to Esprima, or a bug in Esprima itself. To fix this, try updating to the latest version of Esprima or carefully examine the syntax tree you're providing for any issues.

Esprima 4.0.1 Error: 'Cannot destructure property 'start' of 'node.range' as it is undefined'

原文地址: https://www.cveoy.top/t/topic/mzVb 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录