formio / vue

Javascript Powered forms and JSON form builder for Vue.js
MIT License
119 stars 65 forks source link

[BUG] Cannot resolve module 'vue-style-loader!css' #64

Closed TheBranches closed 2 years ago

TheBranches commented 2 years ago

After Basic Usage,occurs this Issue:

ERROR in ./~/formiojs/components/datagrid/DataGrid.js Module not found: Error: Cannot resolve module 'vue-style-loader!css' in D:\vue-vuex-starter-kit-next\node_modules\formiojs\components\datagrid @ ./~/formiojs/components/datagrid/DataGrid.js 138:12-43

ERROR in ./~/formiojs/WebformBuilder.js Module not found: Error: Cannot resolve module 'vue-style-loader!css' in D:\vue-vuex-starter-kit-next\node_modules\formiojs @ ./~/formiojs/WebformBuilder.js 152:12-43

WebformBuilder.js 152:12-43 && DataGrid.js 138:12-43 is same code:

var dragula;

if (typeof window !== 'undefined') { // Import from "dist" because it would require and "global" would not be defined in Angular apps. dragula = require('dragula/dist/dragula'); }

It could be caused by dragula, Anyone know how to fix it ? Thank you !

TheBranches commented 2 years ago

The problem of vue-vuex-starter-kit