When updating to 12.3.2 the danger job fails with the error SyntaxError: Cannot use import statement outside a module. Renaming the file to .mts does not fix the issue.
To Reproduce
Steps to reproduce the behavior:
Create a dangerfile.ts
Use the import { x, y, z } from './scripts/utils' syntax in the file
Upgrade to 12.3.2
Expected behavior
12.6.2 should continue to work with existing dangerfiles.
Describe the bug
When updating to 12.3.2 the danger job fails with the error
SyntaxError: Cannot use import statement outside a module
. Renaming the file to.mts
does not fix the issue.To Reproduce Steps to reproduce the behavior:
dangerfile.ts
import { x, y, z } from './scripts/utils'
syntax in the fileExpected behavior
12.6.2 should continue to work with existing dangerfiles.
Your Environment