#Hello everyone, I can't install my modules in tests, I receive a error

1 messages · Page 1 of 1 (latest)

floral ermine
#

Error: generate code: error formatting generated code: 4613:9: expected '}', found 'type' (and 10 more errors)

honest dagger
floral ermine
honest dagger
floral ermine
#

Yes

#

Can be a error in my gen code, but my gen code is correct, dagger check, dagger call and dagger develop pass anytime

honest dagger
#

that's strange.. creating the tests module is pretty much the same as creating any regular dagger module. Just tried this and it works without problems:

mkdir someproject
cd someproject
git init # dagger needs a git context to have a scope
dagger init --sdk typescript --source .dagger #creates main project
mkdir tests && cd tests
dagger init --sdk typescript #create the test project
dagger install .. #installing the main "someproject" module to test it
floral ermine
#

I found the problem, the pod generate a var with name type