vue-cli怎么继承sqlite

dj123456 2022-09-23 07:26:15 阅读数:273

vue继承SQLiteVue-clicli
npm install sqlite3 
const sqlite3 = require('sqlite3');

 

Compiled with problems:X
 

ERROR in ./node_modules/@mapbox/node-pre-gyp/lib/util/nw-pre-gyp/index.html 1:0
 
Module parse failed: Unexpected token (1:0) 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 > <!doctype html> | <html> | <head>

 
ERROR in ./node_modules/@gar/promisify/index.js 7:4-19
 
Module not found: Error: Can't resolve 'util' in 'D:\ct-coinfans\node_modules\@gar\promisify' BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default. This is no longer the case. Verify if you need this module and configure a polyfill for it. If you want to include a polyfill, you need to: - add a fallback 'resolve.fallback: { "util": require.resolve("util/") }' - install 'util' If you don't want to include a polyfill, you can use an empty module like this: resolve.fallback: { "util": false }

版权声明:本文为[dj123456]所创,转载请带上原文链接,感谢。 https://www.oschina.net/question/4578911_2327004