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
// main.tsimportpathfrom'path'// This uses esModuleInterlop, and doesn't cause issuesimport{setOutput}from'./util'path.normalize('')// OKsetOutput('a','b')// Cannot read property 'setOutput' of undefined
// util.tsimportcorefrom'@actions/core'// This should use esModuleInterlop too, but I get an errorexportfunctionsetOutput(a,b){returncore.setOutput(a,b)}
The error I'm showing in the code ("Cannot read property 'setOuput' of undefined") only happens when I use the build, there are no compile errors. Since this is the code of a GitHub Action, I have no way of running this code locally before NCC compiles it.
I know that the issue is with esModuleInterlop because I solved it by using import * as core from '@actions/core'
Do you have any clue on what could I have been doing wrong?
The text was updated successfully, but these errors were encountered:
My code has two files, that look like this:
The error I'm showing in the code ("Cannot read property 'setOuput' of undefined") only happens when I use the build, there are no compile errors. Since this is the code of a GitHub Action, I have no way of running this code locally before NCC compiles it.
I know that the issue is with
esModuleInterlop
because I solved it by usingimport * as core from '@actions/core'
Do you have any clue on what could I have been doing wrong?
The text was updated successfully, but these errors were encountered: