You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
lux new testApp --database mysql lux g resource user email:string password:string
Updated seed.js :
import User from 'app/models/user';
export default async function seed(trx) {
await User.transacting(trx).create({
email:'[email protected]',
password: "password"
})
}
Created test_app_dev mysql database
Called : lux db:migrate
When calling
lux db:seed
I got the following error message :
TypeError: Cannot read property 'concat' of undefined
at new Model (F:\workspace\lux\testApp7\dist\bundle.js:340:432)
at new User (F:\workspace\lux\testApp7\dist\bundle.js:530:1)
at F:\workspace\lux\testApp7\dist\bundle.js:340:3932
at Generator.next (<anonymous>)
at step (F:\workspace\lux\testApp7\dist\bundle.js:68:30)
at F:\workspace\lux\testApp7\dist\bundle.js:86:14
at new Promise (<anonymous>)
at F:\workspace\lux\testApp7\dist\bundle.js:65:12
at run (F:\workspace\lux\testApp7\dist\bundle.js:340:4926)
at Function.create (F:\workspace\lux\testApp7\dist\bundle.js:340:4976)
at Proxy.create (F:\workspace\lux\testApp7\dist\bundle.js:298:125)
at F:\workspace\lux\testApp7\dist\bundle.js:623:33
at Generator.next (<anonymous>)
at step (F:\workspace\lux\testApp7\dist\bundle.js:68:30)
at F:\workspace\lux\testApp7\dist\bundle.js:86:14
at new Promise (<anonymous>)
From previous event:
at F:\workspace\lux\testApp7\node_modules\knex\lib\transaction.js:93:14
at runCallback (timers.js:789:20)
at tryOnImmediate (timers.js:751:5)
From previous event:
at Transaction_MySQL2.Transaction (F:\workspace\lux\testApp7\node_modules\knex\lib\transaction.js:64:41)
at new Transaction_MySQL2 (F:\workspace\lux\testApp7\node_modules\knex\lib\dialects\mysql2\transaction.js:29:25)
at Client_MySQL2.transaction (F:\workspace\lux\testApp7\node_modules\knex\lib\dialects\mysql2\index.js:60:12)
at Function.transaction (F:\workspace\lux\testApp7\node_modules\knex\lib\util\make-knex.js:75:21)
at Database.then.store (E:\Users\Antoine\AppData\Roaming\npm\node_modules\lux-framework\src\packages\cli\commands\dbseed.js:23:22)
at <anonymous>
The text was updated successfully, but these errors were encountered:
fiftoine
changed the title
db seed : Cannot read property 'concat' of undefined
db seed with mysql database : Cannot read property 'concat' of undefined
Jan 3, 2018
Considering the following situation:
lux new testApp --database mysql
lux g resource user email:string password:string
Updated seed.js :
Created test_app_dev mysql database
Called :
lux db:migrate
When calling
lux db:seed
I got the following error message :
The text was updated successfully, but these errors were encountered: