Directly access:
app. Use ('/mycc/' express. Static ('/mycc/')); code> path joining together: app. Use ('/mycc, express the static (path. Join (__dirname, "./mycc ")));
Effect:
Read More:
- Failed to import static file of vue3 static resource. There is no static folder
- Nuxt cannot find the static resource in static
- ERROR in static/js/app.xxxxxxx.js from UglifyJs Unexpected token: operator (>)
- Spring MVC – enable static resource access
- Request cannot get static resource
- ERROR in ./node_modules/css-loader/dist/cjs.js!./node_modules/less-loader/dist/cjs.js!./src/css/spec
- non-static variable this cannot be referenced from a static context
- Module build failed (from ./node_modules/postcss-loader/src/index.js):
- [W xx:xx:xx.xxx NotebookApp] 404 GET/static/components/react/react-dom.production.min.js (::1)
- [Solved] gitbook: node_modules\npm\node_modules\graceful-fs\polyfills.js:287
- An error is reported during Java operation due to the problem of static resource export
- Node.js Cannot find module ‘mysql’ ‘express’
- Node.js Error: cannot find module ‘xxx’
- node.js Cannot find module “XXX” solution
- After node.js is installed, use the instruction node version in vscode to show that it is not an external or internal instruction. The solution is as follows:
- Debugging with chrome Node.js
- Node.JS “Cannot enqueue Handshake after invoking quit” Error (Fixed)
- NPM and Node.js Version incompatibility
- Uncaught TypeError: Failed to execute ‘appendChild’ on ‘Node’: parameter 1 is not of type ‘Node How to Fix
- Module build failed (from ./node_modules/babel-loader/lib/index.js) babel-loader