Giter VIP home page Giter VIP logo

Comments (9)

joseant avatar joseant commented on August 19, 2024 1

Thanks. Now is working.

from angular2-indexeddb.

gilf avatar gilf commented on August 19, 2024

Please update to version 1.0.1 and try again.
Also, I recommend to use a bundler (Webpack, Browserify and etc.) instead of adding the file to your app.

from angular2-indexeddb.

joseant avatar joseant commented on August 19, 2024

Hello.
I have tried the version 1.0.1 with

angular-cli: 1.0.0-beta.19-3
node: 6.5.0
os: win32 x64

I follow this steps:

  • npm install angular2-indexeddb --save
  • import {AngularIndexedDB} from './angular2-indexeddb'; in the component
    And I get this error:
    ERROR in ./src/app/app.component.ts
    Module not found: Error: Can't resolve './angular2-indexeddb' in [...]

Thanks.

from angular2-indexeddb.

gilf avatar gilf commented on August 19, 2024

Please update to version 1.0.3.
I added an index.ts file and declaration file for the service which should solve the problems.
Let me know if that helped.

from angular2-indexeddb.

joseant avatar joseant commented on August 19, 2024

Hello.

I got now two errors:

ERROR in ./src/app/app.component.ts
Module not found: Error: Can't resolve './angular2-indexeddb' in
@ ./src/app/app.component.ts 11:0-56
@ ./src/app/index.ts
@ ./src/main.ts
@ multi main

ERROR in [default] node_modules@types\es6-promise\index.d.ts:11:14
Duplicate identifier 'Promise'.

ERROR in [default] node_modules@types\es6-promise\index.d.ts:42:18
Duplicate identifier 'Promise'.

[....]

from angular2-indexeddb.

gilf avatar gilf commented on August 19, 2024

Please use:
import {AngularIndexedDB} from 'angular2-indexeddb';
without the ./ to import the service.
The second error isn't related to angular2-indexeddb (it's a problem in es6-promise module)

from angular2-indexeddb.

joseant avatar joseant commented on August 19, 2024

Hello.
With this configuration:
angular-cli: 1.0.0-beta.19-3
node: 6.5.0
os: win32 x64

If I create a new project: ng new test
It works.

Later If I do npm install angular2-indexeddb
and ng serve

ERROR in [default] C:\Users\josea\Documents\essentsialist\tests\storage\storage4\node_modules@types\es6-promise\index.d.ts:11:14
Duplicate identifier 'Promise'.

ERROR in [default] C:\Users\josea\Documents\essentsialist\tests\storage\storage4\node_modules@types\es6-promise\index.d.ts:42:18
Duplicate identifier 'Promise'.

ERROR in [default] C:\Users\josea\Documents\essentsialist\tests\storage\storage4\node_modules\typescript\lib\lib.es2015.iterable.d.ts:141:10
Duplicate identifier 'Promise'.

ERROR in [default] C:\Users\josea\Documents\essentsialist\tests\storage\storage4\node_modules\typescript\lib\lib.es2015.promise.d.ts:20:10
Duplicate identifier 'Promise'.

ERROR in [default] C:\Users\josea\Documents\essentsialist\tests\storage\storage4\node_modules\typescript\lib\lib.es2015.promise.d.ts:187:12
Duplicate identifier 'Promise'.

ERROR in [default] C:\Users\josea\Documents\essentsialist\tests\storage\storage4\node_modules\typescript\lib\lib.es2015.symbol.wellknown.d.ts:164:10
Duplicate identifier 'Promise'.

from angular2-indexeddb.

gilf avatar gilf commented on August 19, 2024

Hi,

Had time to solve the duplicate issue.
Please grab version 1.0.5 and you will be alright.

from angular2-indexeddb.

alevidcosta avatar alevidcosta commented on August 19, 2024

import {IndexedDBAngular} from 'indexeddb-angular'; for indexeddb-angular version 0.1.8

from angular2-indexeddb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.