Closed jeffaribeiro closed 4 years ago
Go to yours config.json and type:
"CompilerOptions": {
...
"allowSyntheticDefaultImports": true,
...
}
I solved the problem by adding
import * as Plyr of 'plyr';
in the files
\ node_modules \ ngx-plyr \ lib \ plyr \ plyr.component.d.ts
\ node_modules \ ngx-plyr \ lib \ driver plyr \ driver plyr.d.ts
I triggered the discussion here https://github.com/sampotts/plyr/pull/1521#issuecomment-597629466
Let's see whether we would need to switch to the import * as Plyr of 'plyr';
in the future.
Using import * as Plyr of 'plyr';
in combination with v4.0.0 should solve the issue
Hello!
After installing and configuring ngx-plyr, as explained in the documentation and the Stackblitz example, I was not successful. The following error occurs:
ERROR in node_modules/ngx-plyr/lib/plyr-driver/plyr-driver.d.ts:1:8 - error TS1192: Module '"D:/source/repos/MuradJazzPiano/node_modules/plyr/src/js/plyr"' has no default export.
1 import Plyr from 'plyr';