madhusudanbabar / k-domains

A simple module to manage multiple subdomains with just one project
https://www.npmjs.com/package/k-domains
MIT License
52 stars 8 forks source link

Can't resolve 'child_process' 'fs' 'module' #9

Closed tuananhbfs closed 3 years ago

tuananhbfs commented 3 years ago

I tried using k-modules for my project, followed the full instructions and had the following problem. I hope everyone will help me

madhusudanbabar commented 3 years ago

Can you post the error logs?

tuananhbfs commented 3 years ago

I tried to find the cause of the error by deleting the plugins in nuxt.config.js And here is the reason. I'm not sure why it conflicts.

`const webpack = require('webpack');

export default {

build: { plugins: [ new webpack.ProvidePlugin({ $: 'jquery', jQuery: 'jquery', 'window.jQuery': 'jquery' }) ], }, }`

madhusudanbabar commented 3 years ago

actually, it has nothing to do with plugins but without the logs can't proceed further