Deploy - Cannot use import statement outside a module

Found it

I had some imports which included the workspace api:

import {createAccount} from 'api/src/services/accounts/accounts'

They were working on local and I had no warning of any kind, i think they might have been a misconfiguration of my IDE at some point, but I have a couple more points to check.

Removing the workspace made the import work again.

import {createAccount} from 'src/services/accounts/accounts'

Not sure how exactly it can go from there to the error message in the original post :-\

2 Likes