Skip to content
This repository has been archived by the owner on Aug 16, 2019. It is now read-only.

[vuepress] cannot resolve plugin "vuepress-pass" #6

Open
andrewmkrug opened this issue Jan 4, 2019 · 2 comments
Open

[vuepress] cannot resolve plugin "vuepress-pass" #6

andrewmkrug opened this issue Jan 4, 2019 · 2 comments
Assignees
Labels
help wanted Extra attention is needed

Comments

@andrewmkrug
Copy link

andrewmkrug commented Jan 4, 2019

In when I run the vuepress build docs I am getting an error `[vuepress] cannot resolve plugin "vuepress-pass"

I have this in the config.js

plugins: {
    'vuepress-pass': {
      url: 'url in auth0,
      redirectUri: 'url in auth0/callback',
      clientId: 'client id in auth0',
    },

Is there any other information needed to make this work?

@klarkc
Copy link
Contributor

klarkc commented Jan 4, 2019

It's the only required information, there is authenticated and unauthenticated callback, that are optionals (I know I must doc this somewhere).

The problem is that for some reason the module is not being found, did you installed correctly (npm ls vuepress-pass)?

You can also try using this:

config.js

const Pass = require('vuepress-pass');

module.exports = {
  plugins: [[Pass, {...}]],
};

@andrewmkrug
Copy link
Author

I did that and I tried instead using yarn. Same error message, I did find this as a warning in VS code using the const Pass = require

Try `npm install @types/vuepress-pass` if it exists or add a new declaration (.d.ts) file containing `declare module 'vuepress-pass';

@klarkc klarkc self-assigned this Jan 7, 2019
@klarkc klarkc added the help wanted Extra attention is needed label Jan 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants