Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webpack bundling issue #163

Open
gottipatibalu opened this issue May 26, 2019 · 1 comment
Open

Webpack bundling issue #163

gottipatibalu opened this issue May 26, 2019 · 1 comment

Comments

@gottipatibalu
Copy link

I having issues bundling this with webpack

Warning when bundling with webpack

WARNING in ./node_modules/app-root-path/lib/app-root-path.js 14:10-56
Critical dependency: the request of a dependency is an expression
@ ./node_modules/app-root-path/index.js
@ ./node_modules/microframework/Microframework.js
@ ./node_modules/microframework/index.js
@ ./app.ts

WARNING in ./node_modules/microframework/Microframework.js
Module not found: Error: Can't resolve 'ascii-art' in '/Users/bgottip/Desktop/template/nodeproj/node_modules/microframework'
@ ./node_modules/microframework/Microframework.js
@ ./node_modules/microframework/index.js
@ ./app.ts

Error when running the file using node

node dist/server.js
path.js:39
throw new ERR_INVALID_ARG_TYPE('path', 'string', path);
^

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined
at assertPath (path.js:39:11)
at Object.dirname (path.js:1265:5)
at resolve (/Users/bgottip/Desktop/template/nodeproj/dist/server.js:615:22)
at module.exports (/Users/bgottip/Desktop/template/nodeproj/dist/server.js:497:20)
at Object.module.exports (/Users/bgottip/Desktop/template/nodeproj/dist/server.js:485:18)
at webpack_require (/Users/bgottip/Desktop/template/nodeproj/dist/server.js:20:30)
at Microframework.config (/Users/bgottip/Desktop/template/nodeproj/dist/server.js:204:26)
at Object.bootstrapMicroframework (/Users/bgottip/Desktop/template/nodeproj/dist/server.js:163:10)
at Object.defineProperty.value (/Users/bgottip/Desktop/template/nodeproj/dist/server.js:115:18)
at webpack_require (/Users/bgottip/Desktop/template/nodeproj/dist/server.js:20:30)

any ideas? anyone using this webpack ?

@Paul75
Copy link

Paul75 commented Aug 10, 2021

I have the same problem and not found solutions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants