Comments (3)
Shouldn't plain javascript be supported by typescript? What issues are you having?
from vue-router-back-button.
Could not find a declaration file for module 'vue-router-back-button'. '/Users/jvik/project/node_modules/vue-router-back-button/dist/index.js' implicitly has an 'any' type.
Try `npm install @types/vue-router-back-button` if it exists or add a new declaration (.d.ts) file containing `declare module 'vue-router-back-button';`
TS Errors like this when importing
from vue-router-back-button.
You can use the follow syntax for now:
import Vue from 'vue';
import Router from 'vue-router';
const VueRouterBackButton = require('vue-router-back-button');
Vue.use(Router);
Vue.use(VueRouterBackButton.routerHistory);
const router = new Router({
routes: [
//
],
});
router.afterEach(VueRouterBackButton.writeHistory);
export default router;
from vue-router-back-button.
Related Issues (14)
- Error when building with Uglify/webpack HOT 2
- support for vue router v3.1.3 ? HOT 1
- Erratic Behaviour on Nuxt 2.14.0 (Vue router 3.3.4) HOT 2
- History tracking does not work when history has modified by external effects. HOT 2
- Vue3 support HOT 4
- history.length having a maximum value of 50 causing issues HOT 4
- Cant use this module HOT 1
- Differentiate between going back and navigating to a route HOT 9
- Not tracking history HOT 2
- Add these instructions for Nuxt support for vue-router-back-button HOT 8
- Error: $routerHistory is not defined on the instance but referenced during render HOT 1
- Issue with multiple route paths HOT 3
- render function or template not defined in component: NuxtLink HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-router-back-button.