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: 84
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/',

paulprrn
Posts: 2
Joined: 26 Mar 2017, 22:39

09 Apr 2023, 01:53

I purchased your Primevue Ultima Layout among other products and I was able to implement my application using it. However, I wanted to transition to the new Pinia Store, vite, and testing support and I tried to refactor the Ultima Layout and this didn't workout. So, I noticed that you have a free Sakai-vue layout and I tried, following your instructions int he video and I just can't get it started. I cannot get past the following:

sakai-vue-cli-master npm run serve

> sakai-vue@3.4.2-SNAPSHOT serve
> vue-cli-service serve

INFO Starting development server...
98% after emitting CopyPlugin

ERROR Failed to compile with 1 error 4:51:28 PM

error in ./node_modules/primevue/virtualscroller/virtualscroller.esm.js

Module parse failed: Unexpected token (635:39)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| },
| getPageByFirst(first) {
> return Math.floor(((first ?? this.first) + this.d_numToleratedItems * 4) / (this.step || 1));
| },
| isPageChanged(first) {

@ ./node_modules/primevue/multiselect/multiselect.esm.js 6:0-55 1040:25-40
@ ./src/main.js
@ multi (webpack)-dev-server/client?http://192.168.86.232:8081&sockPath=/sockjs-node (webpack)/hot/dev-server.js ./src/main.js


Please advise.

paulprrn
Posts: 2
Joined: 26 Mar 2017, 22:39

09 Apr 2023, 01:58

Please note, I downloaded the Sakai project from your site. I look at the package.config and there are no vite dependencies in there, so I assume that there is no vite configuration file.

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

14 Apr 2023, 00:40

Hi,
All templates were updated yesterday. Now all templates work with Vite. If the problem still occurs, we can talk again here.

Post Reply

Return to “PrimeVue”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 5 guests