aurelia-plugins / aurelia-plugins-cookies Goto Github PK
View Code? Open in Web Editor NEWA cookies plugin for Aurelia.
License: MIT License
A cookies plugin for Aurelia.
License: MIT License
I downloaded the aurelia-plugins-cookies addon to use tabs on an app I'm working on.
When I first load the page, the tabs work.
When I reload the page, I get bounced to my fallbackRoute, and the following error is displayed in the console:
aurelia-logging-console.js?dc89:45 ERROR [app-router] TypeError: Cannot read property 'find' of undefined.
Hey, just wanted to mention that aurelia-plugins-cookies is not in the jspm registry.
Calling Cookies.remove()
without any options sets the value to empty, but doesn't actually remove the cookie.
Since I've upgraded to jspm@beta, I had to remove aurelia-cookies
and install aurelia-plugins-cookies
. But I'm unable to bundle it.
jspm bundle aurelia-framework + aurelia-bootstrapper + aurelia-loader-default + aurelia-templating-binding + aurelia-templating-router + aurelia-templating-resources + aurelia-pal + aurelia-router + aurelia-history + aurelia-history-browser + aurelia-logging-console + aurelia-validation + aurelia-fetch-client + aurelia-plugins-cookies + aurelia-i18n + aurelia-animator-css + materialize-css + aurelia-loader + jquery + text + i18next-xhr-backend + url-parse + moment ./aurelia.dev.js
I get the error message
err Error on fetch for npm:[email protected] at file:///Users/mike/dev/jspm_packages/npm/[email protected]
Error: EISDIR: illegal operation on a directory, read
at Error (native)
ls -lahF /Users/mike/dev/jspm_packages/npm/[email protected]
drwxr-xr-x 4 mike staff 136B Jun 21 17:04 ./
drwxr-xr-x 328 mike staff 11K Jun 21 17:04 ../
-rw-r--r-- 1 mike staff 129B Jun 21 17:04 .jspm-hash
-rw-r--r-- 1 mike staff 2.7K Jun 21 17:04 aurelia-plugins-cookies.js
I'm submitting a bug report
Please tell us about your environment:
Operating System:
OSX 10.10
Node Version:
6.6.0
NPM Version:
3.10.7
JSPM OR Webpack AND Version
Not using jspm/webpack
Browser:
N/A
Language:
all | TypeScript 1.8.6 |
Current behavior:
After adding "aurelia-cookies": "^1.1.1" to my npm dependencies and installing via npm install I am trying to compile my typescript into js using tsc, however when running tsc it throws the following error:
node_modules/aurelia-cookies/dist/aurelia-cookies.d.ts(20,1): error TS1128: Declaration or statement expected.
node_modules/aurelia-cookies/dist/aurelia-cookies.d.ts(20,8): error TS2304: Cannot find name 'declare'.
node_modules/aurelia-cookies/dist/aurelia-cookies.d.ts(20,16): error TS1005: ';' expected.
Looking at where the error is being thrown in aurelia-cookies.d.ts it's complaining about the following:
export declare {
Cookies
};
Is this correct syntax for a d.ts file? If I comment out those three lines tsc completes without error.
Expected/desired behavior:
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.