You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting this error when building my Bit component library:
Failed task 2: "teambit.compilation/compiler:TSCompiler" of env "cannabitrx.design/tailwind/bit-preview@0.0.10"
component: cannabitrx.design/utils/notification@0.0.1
/home/daniel/Library/Caches/Bit/capsules/ec485f8a915bf25eeb84d81852287b6d7dffac6b/cannabitrx.design_utils_notification@0.0.1/utils.ts:9:9 - error TS4023: Exported variable 'NotificationProvider' has or is using name 'ProviderProps' from external module "/home/daniel/Library/Caches/Bit/capsules/ec485f8a915bf25eeb84d81852287b6d7dffac6b/node_modules/react-notification-provider/dist/index" but cannot be named.
9 const { NotificationProvider, useNotificationQueue, createMockNotificationQueue } =
~~~~~~~~~~~~~~~~~~~~
But it works fine during testing/development.
I suspect this is due to some issues in the declaration file for this library?
The text was updated successfully, but these errors were encountered:
Once I added the export, the error is gone, because now Typescript is able to name the type of the NotificationProvider. Before, it could not.
By the way, the reason why Bit didn't show the error during development is because it doesn't generate declaration files at that stage, only during build. The issue here happens when TS generates the d.ts file.
I'm getting this error when building my Bit component library:
But it works fine during testing/development.
I suspect this is due to some issues in the declaration file for this library?
The text was updated successfully, but these errors were encountered: