Vue-styleguidist: Get an error '_findFileCaseInsensitive.default.clearCache is not a function'

Created on 18 Nov 2019  ·  5Comments  ·  Source: vue-styleguidist/vue-styleguidist

Current behavior

I get an error in console when I run styleguide with vue-cli-plugin-styleguidist:

./node_modules/vue-styleguidist/lib/client/index.js (./node_modules/vue-styleguidist/lib/loaders/styleguide-loader.js!./node_modules/vue-styleguidist/lib/client/index.js)
TypeError: _findFileCaseInsensitive.default.clearCache is not a function
 @ ./node_modules/vue-styleguidist/lib/client/index.js 36:19-71 46:2-49:4 46:65-49:3
 @ multi ./node_modules/react-dev-utils/webpackHotDevClient.js ./node_modules/vue-styleguidist/lib/client/index

To reproduce

  • I installed "vue-cli-plugin-styleguidist": "^4.0.1"
  • Added some .md files for my vue components.
  • Then I run a command vue-cli-service styleguidist
  • It's running but throws an error in console

Expected behavior

Runs correctly

bug

Most helpful comment

The same problem

All 5 comments

The same problem

I tried the same on a new vue create sgtest app, and get the same error.

You can now view your style guide in the browser:

  Local:            http://localhost:6060/

 FAIL  Failed to compile

./node_modules/vue-styleguidist/lib/client/index.js (./node_modules/vue-styleguidist/lib/loaders/styleguide-loader.js!./node_modules/vue-styleguidist/lib/client/index.js)
TypeError: _findFileCaseInsensitive.default.clearCache is not a function
 @ ./node_modules/vue-styleguidist/lib/client/index.js 36:19-71 46:2-49:4 46:65-49:3
 @ multi ./node_modules/react-dev-utils/webpackHotDevClient.js ./node_modules/vue-styleguidist/lib/client/index
^C%

vue add styleguidist loads 4.0.1

npm ls vue-cli-plugin-styleguidist [email protected] /Users/wtf8yn/src/test/sgtest └── [email protected]

I have the problem too

Thank you all for reporting !!! I am on it.

I'm afraid this didn't fixed it and created #639

Was this page helpful?
0 / 5 - 0 ratings