wahyubucil / adonis-mix-asset Goto Github PK
View Code? Open in Web Editor NEWLaravel Mix for Asset Bundler on AdonisJS
License: MIT License
Laravel Mix for Asset Bundler on AdonisJS
License: MIT License
Hello. Every time (I tried 3 new projects) when I try to execute invoke command the program throws such a bug and laravel-mix does not work. How to fix it?
❯ node ace invoke adonis-mix-asset
TypeError: logger.create is not a function
1 instructions
/Users/dawidowczarz/Desktop/Projekty/devcasts/node_modules/adonis-mix-asset/build/instructions.js:12
2 Instructions.runInstructions
/Users/dawidowczarz/Desktop/Projekty/devcasts/node_modules/@adonisjs/sink/src/Tasks/Instructions/index.js:265
3 Instructions.execute
/Users/dawidowczarz/Desktop/Projekty/devcasts/node_modules/@adonisjs/sink/src/Tasks/Instructions/index.js:325
4 Invoke.run
/Users/dawidowczarz/Desktop/Projekty/devcasts/node_modules/@adonisjs/assembler/build/commands/Invoke.js:50
5 async Invoke.exec
/Users/dawidowczarz/Desktop/Projekty/devcasts/node_modules/@adonisjs/ace/build/src/BaseCommand/index.js:136
6 async Kernel.runCommand
/Users/dawidowczarz/Desktop/Projekty/devcasts/node_modules/@adonisjs/ace/build/src/Kernel/index.js:238
7 async App.handle
/Users/dawidowczarz/Desktop/Projekty/devcasts/node_modules/@adonisjs/core/build/src/Ignitor/Ace/App/index.js:307
8 async Ace.handle
/Users/dawidowczarz/Desktop/Projekty/devcasts/node_modules/@adonisjs/core/build/src/Ignitor/Ace/index.js:33
I will add that I use AdonisJS version 5.
Hey bro, I love your laravel-mix wrapper for AdonisJS. Can you update your package? At this moment this throw us a lot of errors while installing it in a new project. Please <3
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: @adonisjs/[email protected]
npm ERR! node_modules/@adonisjs/view
npm ERR! @adonisjs/view@"^6.0.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @adonisjs/view@"^3.1.0" from [email protected]
npm ERR! node_modules/adonis-mix-asset
npm ERR! dev adonis-mix-asset@"*" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /Users/dawidowczarz/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/dawidow/.npm/_logs/2021-05-14T15_47_09_190Z-debug.log```
is there anything i could do for it?
Hi !
When I execute the command "node ace mix:watch", I have an error :
TypeError: The "path" argument must be of type string. Received undefined
1 MixWatch.run
/Users/steve/Sites/Labo/file-manager/node_modules/adonis-mix-asset/build/commands/Mix/Watch.js:20
2 Injector.callAsync
/Users/steve/Sites/Labo/file-manager/node_modules/@adonisjs/fold/build/src/Ioc/Injector.js:124
2.3.0
The documentation says to install adonis-mix-asset as a dev-dependency although it is required in production. However laravel-mix can and should be installed in --save-dev mode.
Tested on : "adonis-mix-asset": "^2.1.0", "laravel-mix": "^6.0.0-beta.17", AdonisJS v5
Error: Cannot find module 'adonis-mix-asset'
Require stack:
- /Users/mickael/Documents/build/noop.js
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:919:15)
at resolveFileName (/Users/mickael/Documents/build/node_modules/resolve-from/index.js:29:39)
at resolveFrom (/Users/mickael/Documents/build/node_modules/resolve-from/index.js:43:9)
at Object.module.exports [as default] (/Users/mickael/Documents/build/node_modules/resolve-from/index.js:46:47)
at Object.resolveFrom (/Users/mickael/Documents/build/node_modules/@poppinss/utils/build/src/resolveFrom.js:25:34)
at Registrar.loadProvider (/Users/mickael/Documents/build/node_modules/@adonisjs/fold/build/src/Registrar/index.js:49:23)
at /Users/mickael/Documents/build/node_modules/@adonisjs/fold/build/src/Registrar/index.js:67:53
at Array.forEach (<anonymous>)
at Registrar.collect (/Users/mickael/Documents/build/node_modules/@adonisjs/fold/build/src/Registrar/index.js:66:23)
at Registrar.register (/Users/mickael/Documents/build/node_modules/@adonisjs/fold/build/src/Registrar/index.js:96:14)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.