creativetimofficial / ct-vue-material-dashboard-2-pro

Vue Material Dashboard 2 PRO - Premium Dashboard using VueJS 3 and Bootstrap 5
https://demos.creative-tim.com/vue-material-dashboard-2-pro/
2 stars 1 forks source link

Cannot find module `vue/compiler-sfc` #1

Open harrywestuk opened 1 year ago

harrywestuk commented 1 year ago

Version

3.0.0

Reproduction link

https://github.com

Operating System

Windows 10 Enterprise 21H2 OS Build 19044.2251

Device

Lenovo Ideapad Intel i5-8250 8GB RAM

Browser & Version

Microsoft Edge Version 107.0.1418.56

Steps to reproduce

As per instructions - https://www.creative-tim.com/learning-lab/vue/quick-start/material-dashboard/

  1. Install NodeJS LTS (currently 18.12.1 includes npm 8.19.2
  2. Go to creative tim website and login into your account
  3. Go to downloads section on creative tim website (be sure to be logged into your account) Press the download button near Vue Material Dashboard or Vue Material Dashboard PRO product (this will download onto your computer a zip file)
  4. Unzip the downloaded file to a folder in your computer (C:\Dev)
  5. Open your terminal
  6. Go to C:\Dev\folder-name
  7. Run npm install
  8. Run npm run serve

    What is expected?

    Dashboard should launch on https://localhost:8080

    What is actually happening?

    Terminal states Starting development server... Error: Cannot find module vue/compiler-sfc


Solution

Additional comments

harrywestuk commented 1 year ago

Apologies, I should have added. The documentation refers to the following:

"If you have an error something containing Module not found you need to add our jsconfig.json file to your project"

I've looked at the codebase and cannot find the jsconfig.json file or where to access it

maisamaf commented 1 year ago

Hey @harrywestuk, I checked the project, and everything ran smoothly. Can you please delete your node_modules and try running npm i or npm i --legacy-peer-deps again?

Regards, Maisam