current position:Home>How does vue-cli inherit sqlite

How does vue-cli inherit sqlite

2022-09-23 08:05:39dj123456

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 }

copyright notice
author[dj123456],Please bring the original link to reprint, thank you.
https://en.qdmana.com/2022/266/202209161623011039.html

Random recommended