-
After updating all packages and following the upgrade procedure on the new blog post, I am getting an error about Exception: "path\to\project\node_modules\@adonisjs\[email protected]\node_modules\@adonisjs\env\build\index.js" provider must use export default statement Installed packages:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I made a new Seems like there's a bunch of changes required to make it work for the new Adonis updates, more than those found in the blog post.
|
Beta Was this translation helpful? Give feedback.
-
I've figured it out after trial and error attempts. You must remove ...
"providers": [
"./providers/AppProvider",
"@adonisjs/env",
"@adonisjs/core",
"@adonisjs/session",
"@adonisjs/view",
"@adonisjs/auth",
"@adonisjs/lucid",
"@adonisjs/shield"
],
... must be ...
"providers": [
"./providers/AppProvider",
"@adonisjs/core",
"@adonisjs/session",
"@adonisjs/view",
"@adonisjs/auth",
"@adonisjs/lucid",
"@adonisjs/shield"
],
... |
Beta Was this translation helpful? Give feedback.
I've figured it out after trial and error attempts.
You must remove
@adonisjs/env
from theproviders
array in the.adonisrc.json
file:must be