Whenever I attempt to utilize
parser.parse("import type {Element} from 'react-devtools-shared/src/frontend/types';", {sourceType: "unambiguous"});
for parsing the statement, I come across an error stating Unexpected token, expected "from".
Is there possibly an issue within this code?
Any assistance would be greatly appreciated. Thank you.
Even after setting errorRecovery:true
and strictMode:false
, I'm still facing issues with resolving the error.