kyranet / canvas-constructor

An ES6 utility for canvas with built-in functions and chained methods.
https://canvasconstructor.js.org
MIT License
116 stars 23 forks source link

bug: imports don't work #485

Closed chikof closed 2 years ago

chikof commented 2 years ago

Describe the bug

It just won't let me work when importing the file the right way and without data types

To Reproduce

  1. Try to import skia file or anything else

Expected behavior

0 errors importing the file

Screenshots

https://user-images.githubusercontent.com/53100578/172073797-0f9c2ef1-4973-48ec-a592-e542498bdd5f.mp4

Additional context

kyranet commented 2 years ago

I thought this was supported in TS 4.7, but apparently not? https://devblogs.microsoft.com/typescript/announcing-typescript-4-7/#package-json-exports-imports-and-self-referencing

I suppose I'll revert the removal of the top-level files.