You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Your Environment
software
version
danger.js
12.3.2
node
20.13.1
npm
yarnv1
Operating System
alpine linux 3.18
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: