Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Dataform CLI Compile Fails with ReferenceError.

Hi,

I have a dataform project which compiles successfully in the gcp UI.

However, when I try to run `dataform compile` locally on the same project, I am getting multiple `ReferenceError`s which seem to be connected to javascript strict mode.

an example for code that succeeds in the UI but fails locally:

define a `.js` file under `includes` folder  with a variable:

VAR_NAME = "foo";

this compiles successfully in the UI but locally errors with `ReferenceError: VAR_NAME is not defined`

I am using `"@dataform/cli": "^2.0.4"` and `"@dataform/core": "2.8.0"`

1 4 590
4 REPLIES 4