Fork me on GitHub

Home Forums JSweet Discussion cannot find name 'def'

This topic contains 2 replies, has 2 voices, and was last updated by Avatar Anonymous 1 year, 8 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #3380
    Avatar
    Anonymous

    Hi everyone,

    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.

    Kr,
    S├ębastien

    #3381
    Avatar
    Louis Grignon
    Keymaster

    Hello,
    Is your def package a root package?

    Please post your project files tree, and your pom.

    Bye

    #3382
    Avatar
    Anonymous

    Hi Louis,

    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?

    Tx,
    S├ębastien

Viewing 3 posts - 1 through 3 (of 3 total)

The forum ‘JSweet Discussion’ is closed to new topics and replies.