Sakai Admin VUE

UI Components for Vue
Post Reply
daviidchann
Posts: 1
Joined: 14 Mar 2023, 00:36

14 Mar 2023, 00:43

I downloaded the Sakai Admin Vue from the repository https://github.com/primefaces/sakai-vue
when I run npm run build and try open the index.html from /dist folder is not loading, I get the error below in the console:

Access to script at 'file:///C:/sakai-vue/assets/index.9be255e6.js' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, isolated-app, chrome-extension, chrome-untrusted, https, edge. index.html:1

Failed to load resource: net::ERR_FAILED index.9be255e6.js:1
Failed to load resource: net::ERR_FILE_NOT_FOUND theme.css:1
Failed to load resource: net::ERR_FILE_NOT_FOUND index.6ad66dd3.css:1
Failed to load resource: net::ERR_FILE_NOT_FOUND /C:/sakai-vue/favicon.ico:1

bahadirsofuoglu
Posts: 61
Joined: 06 Sep 2022, 08:59

17 Mar 2023, 16:56

Hi,
You may need to edit the following section in vite.config.js.

Code: Select all

base: command === 'serve' ? '' : '/sakai-vue/',

Post Reply

Return to “PrimeVue”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest