Giter VIP home page Giter VIP logo

aurelia-plugins-cookies's People

Contributors

bryceg avatar dev0x10 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

aurelia-plugins-cookies's Issues

Reload of page using tabs plugin causes router navigation error

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.

Unable to bundle via JSPM 0.17 (beta)

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

Installing aurelia-cookies through npm and then compiling project with tsc causes error

I'm submitting a bug report

  • Framework Version:
    1.1.1

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:

  • What is the expected behavior?
    tsc compilation of project with aurelia-cookies as dependency completes successfully.
  • What is the motivation / use case for changing the behavior?
    No behaviour change

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.