Home › Forums › JSweet Discussion › cannot find name 'def'
This topic contains 2 replies, has 2 voices, and was last updated by Anonymous 1 year, 8 months ago.
I’m trying at the moment to create a candy bridge on top of canvasToPdf JS API but I’m blocking when trying to build my maven Sweet project :
INFO JSweetTranspiler:1132 - bundle.ts(172,17): error TS2304: Cannot find name 'def'
In fact I’ve created a ‘def’ package as explained in the doc at the same level than the ‘.com.mycompany’.
Can anyone tell me if there would be an option to set in the pom file so that I can specify the java sources JSweet needs to consider?
Many thanks in advance for your suggestions.
Is your def package a root package?
Please post your project files tree, and your pom.
Thanks for your reply. Yes, my ‘def’ package is a root package.
I have extract a sample project tree as example in with the pom: https://drive.google.com/open?id=1SpT5aXlXX6a3l-nAOOZFUQIOZncJ3lB-
I’ve realized afterwards that I don’t get this error when using default version for plugin ‘jsweet-maven-plugin’. (2.0.1)
The thing is that I’m forcing to use version 1.2.1 because I’m using ‘rtree’ and ‘lz-string’ candies which don’t exist for JSweet v2…
Any other suggestion?
The forum ‘JSweet Discussion’ is closed to new topics and replies.