What is this?

I had this problem too!

Do you have a line in main.ts that declares transparency16? Deleting the line in main.ts should fix the issue. Also, could you share the project?

It’s not in main.ts,

I think it’s the notification extension that’s breaking because it only happens when I use the notification extension.

Ah yes, this is my fault. :confused:

Whenever I import the notification extension, it imports another tilemap.g.jres or whatever which declares transparency16 too, which conflicts with the one already in your project, but since the file is locked, I can’t remove it.

You can remove it by editing pxt.json and deleting the entries for tilemap.g.jres and tilemap.g.ts. Just be careful that the JSON syntax is correct! Once the entries are removed, you can delete the files in github.

and here’s my standard warning:

YOU SHOULD NOT EDIT PXT.JSON IF YOU DON’T KNOW WHAT YOU’RE DOING BECAUSE YOU CAN BREAK YOUR PROJECT FOREVER

Make sure you back things up first!

1 Like

Fixed it! Please try and let me know!

Um it’s still saying that there is a error.

1 Like

Ahh, you will need to update it on your end - go to JS, look the the explorer and press the reload button next to the notifications folder.

1 Like

This button should pop up / fix it too if you select Try to fix :slight_smile:

1 Like

I did this but it still doesn’t work.

I just deleted the code in the notification file tilemap.g.ts and it’s fine

1 Like