hacklone / angular2-cool-storage Goto Github PK
View Code? Open in Web Editor NEWCool angular2 wrapper for LocalStorage and SessionStorage
License: MIT License
Cool angular2 wrapper for LocalStorage and SessionStorage
License: MIT License
Hi, I was trying your module and after following your README i got this error :
Unexpected value 'CoolLocalStorage' exported by the module 'CoolStorageModule'
Do you know what could make this error happen ?
systemjs.config.js
System.config({
...
map: {
...
'angular2-cool-storage': 'npm:angular2-cool-storage'
},
packages: {
...
'angular2-cool-storage': {
main: './index.js',
defaultExtension: 'js'
}
}
});
app.component.ts
import { Component } from '@angular/core';
import { CoolLocalStorage } from 'angular2-cool-storage';
@Component({
selector: 'my-app',
templateUrl: 'app/views/app/app.component.html'
})
export class AppComponent {
constructor(private localStorage: CoolLocalStorage){}
public my_test:string = this.localStorage.getItem("my_test");
}
and of curse the same app.module.ts that you specified in README.
Not working at all at start
Hello, like mate before me, I have same Issue with
Unexpected value 'CoolStorageModule' imported by the module 'AppModule',
and also compiler was yelled for:
readonly length: number;
in cool-storage-base.d.ts.
Repaired by adding:
readonly(length: number);
But Unexpected value 'CoolStorageModule' imported by the module 'AppModule',
still exist. Newest version doesn't resolved problem.
I am getting error ERROR TypeError: localStorage.setObject is not a function also vs code does not show setObject method on localStorage service. Can you please inspect this. This did not happen couple of months ago.
After updating angular-cli (now on version 1.0.0-rc.0
) I'm getting the following error and I'm not sure how to get this fixed. Maybe you can help?
ERROR in Error encountered resolving symbol values statically. Calling function 'makeDecorator', function calls are not supported. Consider replacing the function or lambda with a reference to an exported function,
resolving symbol NgModule in /Users/marco/TaxiID/corporate.taxiid.nl/node_modules/angular2-cool-storage/node_modules/@angular/core/src/metadata/ng_module.d.ts,
resolving symbol NgModule in /Users/marco/TaxiID/corporate.taxiid.nl/node_modules/angular2-cool-storage/node_modules/@angular/core/src/metadata.d.ts,
resolving symbol NgModule in /Users/marco/TaxiID/corporate.taxiid.nl/node_modules/angular2-cool-storage/node_modules/@angular/core/src/core.d.ts,
resolving symbol NgModule in /Users/marco/TaxiID/corporate.taxiid.nl/node_modules/angular2-cool-storage/node_modules/@angular/core/index.d.ts,
resolving symbol CoolStorageModule in /Users/marco/TaxiID/corporate.taxiid.nl/node_modules/angular2-cool-storage/index.d.ts,
resolving symbol CoolStorageModule in /Users/marco/TaxiID/corporate.taxiid.nl/node_modules/angular2-cool-storage/index.d.ts
Thanks for making such an awesome module!
My application is compiling fine, but when I try to load my app, I see the following error in my console using lite-server
16.12.13 13:51:41 404 GET /Users/btoth/Repositories/angular2-cool-storage/index.js.map
16.12.13 13:51:41 404 GET /Users/btoth/Repositories/angular2-cool-storage/src/cool-local-storage.js.map
16.12.13 13:51:41 404 GET /Users/btoth/Repositories/angular2-cool-storage/src/cool-storage-base.js.map
16.12.13 13:51:41 404 GET /Users/btoth/Repositories/angular2-cool-storage/src/cool-session-storage.js.map
In index.js:
"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
__export(require('./cool-storage'));
//# sourceMappingURL=/Users/Hacklone/Projects/Public/angular2-cool-storage/index.js.map
Reverting to 1.1.0 fixes the issue.
After installing a new module 'ng4-loading-spinner'
I am getting a error
ERROR in Error encountered resolving symbol values statically. Function calls are not supported. Consider replacing the function or lambda with a reference to an exported function (position 194:50 in the original .ts file), resolving symbol NgModule in /var/www/html/buddy-admin/node_modules/ng4-loading-spinner/node_modules/@angular/core/core.d.ts, resolving symbol Ng4LoadingSpinnerModule in /var/www/html/buddy-admin/node_modules/ng4-loading-spinner/ng4LoadingSpinner.module.d.ts, resolving symbol Ng4LoadingSpinnerModule in /var/www/html/buddy-admin/node_modules/ng4-loading-spinner/ng4LoadingSpinner.module.d.ts
After upgrading to Ng5 my application throws an error when loading in the browser.
My setup worked fine on the 4.x version of Angular.
The error text is...
compiler.umd.js?9df7:509 Uncaught Error: Can't resolve all parameters for CoolLocalStorage: (?).
at syntaxError (eval at <anonymous> (app.js:99), <anonymous>:509:34)
at CompileMetadataResolver._getDependenciesMetadata (eval at <anonymous> (app.js:99), <anonymous>:15587:35)
at CompileMetadataResolver._getTypeMetadata (eval at <anonymous> (app.js:99), <anonymous>:15422:26)
at CompileMetadataResolver._getInjectableMetadata (eval at <anonymous> (app.js:99), <anonymous>:15402:21)
at CompileMetadataResolver.getProviderMetadata (eval at <anonymous> (app.js:99), <anonymous>:15762:40)
at eval (eval at <anonymous> (app.js:99), <anonymous>:15673:49)
at Array.forEach (<anonymous>)
at CompileMetadataResolver._getProvidersMetadata (eval at <anonymous> (app.js:99), <anonymous>:15633:19)
at CompileMetadataResolver.getNgModuleMetadata (eval at <anonymous> (app.js:99), <anonymous>:15203:50)
at JitCompiler._loadModules (eval at <anonymous> (app.js:99), <anonymous>:33527:87)
at JitCompiler._compileModuleAndComponents (eval at <anonymous> (app.js:99), <anonymous>:33488:36)
at JitCompiler.compileModuleAsync (eval at <anonymous> (app.js:99), <anonymous>:33404:37)
at CompilerImpl.compileModuleAsync (eval at <anonymous> (app.js:93), <anonymous>:261:49)
at PlatformRef.bootstrapModule (eval at <anonymous> (app.js:105), <anonymous>:5482:25)
at Object.eval (eval at <anonymous> (app.js:87), <anonymous>:20:53)
at eval (eval at <anonymous> (app.js:87), <anonymous>:22:30)
at Object.<anonymous> (app.js:87)
at __webpack_require__ (polyfills.js:53)
at Object.<anonymous> (app.js:6)
at __webpack_require__ (polyfills.js:53)
at webpackJsonpCallback (polyfills.js:24)
at app.js:1
Is it possible to use this module from within static functions in a class that is never instantiated?
Hi,
I want the localstorage data from mydomain.com to subdomain.mydomain.com?
If there is only a iframe and postmessage solution then i dont want.Also i believe that using cookie it is possible so why to use this plugin?
Please suggest
ERROR in Error encountered resolving symbol values statically. Function calls are not supported. Consider replacing the function or lambda with a reference to an exported function (position 194:50 in the original .ts file), resolving symbol NgModule in /node_modules/angular2-cool-storage/node_modules/@angular/core/core.d.ts, resolving symbol CoolStorageModule in node_modules/angular2-cool-storage/index.d.ts, resolving symbol CoolStorageModule in node_modules/angular2-cool-storage/index.d.t
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.