Dexie.js: Cannot import dexie from node_modules with PhpStorm

Created on 6 Jul 2016  路  3Comments  路  Source: dfahlander/Dexie.js

While writing code in TypeScript with PhpStorm 2016.1.2, this code:
import {Dexie} from 'dexie';

shows red underline error:

TS2305: Module '"..../node_modules/dexie/dist/dexie"' has no exported member 'Dexie'

Most helpful comment

Dexie is a default export. You are importing it as if it was a named export.

import Dexie from 'dexie';

All 3 comments

Dexie is a default export. You are importing it as if it was a named export.

import Dexie from 'dexie';

Ah, sorry. My PC is a little bit laggy so I tried that and the error still remain.
Thank you for your quick response!

Thanks! This helped me getting it to work in Aurelia.io

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Script47 picture Script47  路  3Comments

kamleshchandnani picture kamleshchandnani  路  4Comments

oviniciuslara picture oviniciuslara  路  4Comments

ibc picture ibc  路  3Comments

devolarium picture devolarium  路  3Comments