I want to explore Vuetify docs for offline use but this error gave me a headache. after yarn installing, i got couples of warning messages but was successful. Then error occurred when yarn building.
Please what should I do to fix this error?
Thanks in advance.
ERROR Failed to compile with 14 errors 3:26:45 AM
These dependencies were not found:
To install them, you can run: npm install --save @vuetify/api-generator vuetify vuetify/dist/vuetify.css vuetify/es5/locale vuetify/es5/mixins/ssr-bootable vuetify/es5/services/goto vuetify/es
5/services/goto/easing-patterns vuetify/es5/util/colors vuetify/es5/util/helpers
Hash: a1004e3b426327793c6bdf14d5a3c9733386113b
Version: webpack 4.36.1
Child client:
Hash: a1004e3b426327793c6b
Time: 100879ms
Built at: 08/05/2019 3:26:45 AM
Entrypoint app = runtime~app.923d3661e7b58dd083e5.js common.782963045bf067ed1f80.css vendors~app.782963045bf067ed1f80.js common.92fc7469e9061324b506.css
ERROR in ./src/components/components/ApiExplorer.vue?vue&type=script&lang=js& (C:/Users/LJ Sharp/Desktop/New folder/vuetify/node_modules/babel-loader/lib!C:/Users/LJ Sharp/Desktop/New fold
er/vuetify/node_modules/vue-loader/lib??vue-loader-options!./src/components/components/ApiExplorer.vue?vue&type=script&lang=js&)
Module not found: Error: Can't resolve '@vuetify/api-generator' in 'C:UsersLJ SharpDesktopNew foldervuetifypackagesdocssrccomponentscomponents'
@ ./src/components/components/ApiExplorer.vue?vue&type=script&lang=js& (C:/Users/LJ Sharp/Desktop/New folder/vuetify/node_modules/babel-loader/lib!C:/Users/LJ Sharp/Desktop/New folder/vue
tify/node_modules/vue-loader/lib??vue-loader-options!./src/components/components/ApiExplorer.vue?vue&type=script&lang=js&) 99:0-41 145:18-21 157:13-16 191:17-20 191:30-33 191:49-52
@ ./src/components/components/ApiExplorer.vue?vue&type=script&lang=js&
@ ./src/components/components/ApiExplorer.vue
@ ./src/components sync .vue$
@ ./src/components/index.js
@ ./src/main.js
@ ./src/entry-client.js
Please only create issues with the provided issue creator. In the boilerplate for creating an issue, it explains that any ticket made without this will be automatically closed. For general questions, please join the Discord chat room. You can also check reddit or stackoverflow. Thank you.
I have same error. In folder docs where run _yarn_ && _yarn build_ I run _yarn add ../api-generator_ but no solution problem
It's a monorepo, you have to run it from the root directory.
I did but no solution.
I run in _package/api-generator_ npm i && npm run build and then in _package/docs_ npm i && npm i ../api-generator && npm run build
Don't use npm
Hey All,
i am unable to run the docs offline
Steps:
node version is 10.16.3
yarn version is 1.17.3
any solutions?
in root folder:
yarn
yarn build
yarn dev docs // for development
yarn start // for browsing
Thanks it works after building
grenukaprasad, Sir, can I please have your vuetify docs zipped for me to use? I have been trying to fix the problem but no solution. I will really appreciate if you can drop me your docs here for me to download it. Thanks in advance bro.
Yep sure
vuetify-master.zip
Please follow these steps after extracting for yarn installation then "yarn build" the docs then run "yarn dev docs"
reference:
https://github.com/vuetifyjs/vuetify/issues/8300#issuecomment-524555154
https://github.com/vuetifyjs/vuetify/issues/8300#issuecomment-524555249
Okay thanks. I will do it right away.
ERROR in ./src/components/doc/Api.vue?vue&type=script&lang=js& (C:/Users/LJ Sharp/Desktop/vuetify-master/node_modules/babel-loader/lib!C:/Users/LJ Sharp/Desktop/vuetify-master/node_modules/vue-loader/lib??vue-loader-options!./src/components/doc/Api.vue?vue&type=script&lang=js&)
Module not found: Error: Can't resolve '@vuetify/api-generator' in 'C:UsersLJ SharpDesktopvuetify-masterpackagesdocssrccomponentsdoc'
@ ./src/components/doc/Api.vue?vue&type=script&lang=js& (C:/Users/LJ Sharp/Desktop/vuetify-master/node_modules/babel-loader/lib!C:/Users/LJ Sharp/Desktop/vuetify-master/node_modules/vue-loader/lib??vue-loader-options!./src/components/doc/Api.vue?vue&type=script&lang=js&) 102:0-41 207:46-49
@ ./src/components/doc/Api.vue?vue&type=script&lang=js&
@ ./src/components/doc/Api.vue
@ ./src/components sync .vue$
@ ./src/components/index.js
@ ./src/main.js
@ ./src/entry-client.js
I followed the step. But then I got this error. How can I solve this problem?
Ok.... i will rewrite the proper steps...
git clone https://github.com/vuetifyjs/vuetify.git
cd {folderLocation}/vuetify/
yarn
or yarn install
yarn build
yarn dev docs
https://localhost:8095
node version needs to be more than 10
and yarn version is 1.17.3
Okay I will try it now.
The error still exists but api - generator folder exists under packages.
can i have your node and yarn versions? and did you build your project?
I have shared a dist folder zip file of vuetify/packages/docs for reference...
Yes sure.
Node version: v10.16.1
Yarn version: 1.17.3
Are you building the project in root directory(vuetify or vuetify-master)?
yarn run build
yarn run dev docs
in {folderlocation}/vuetify
and Please try upgrading node to v10.16.3 and try again also uninstall yarn and have a fresh installation (though that is not the issue... making sure they are not causing any problems)
sharing api-generator zip just in case
api-generator.zip
Okay copy that.
Yes please I was building in vuetify folder which was compiled successfully but when runing dev, I still got the same error.
Alright bro, you have helped me to try to fix it so thank you. I will stick to online Vuetify documentation though.
The problem has been solved by the following:
git clone vuetify repo
cd vuetify
yarn or yarn install
yarn build
yarn start
http://localhost:8095.
Done!!! 馃槉
Most helpful comment
The problem has been solved by the following:
git clone vuetify repo
cd vuetify
yarn or yarn install
yarn build
yarn start
http://localhost:8095.
Done!!! 馃槉