-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
Type error using Symfony 7 #90
Comments
Hello @smaniren ! Could you share you package.json file? It seems the |
Hi @tgalopin! here's my package.json: {
"devDependencies": {
"@babel/core": "^7.17.0",
"@babel/preset-env": "^7.16.0",
"@symfony/webpack-encore": "^4.0.0",
"@tailwindcss/forms": "^0.5.6",
"@types/hotwired__turbo": "^8.0.1",
"autoprefixer": "^10.4.16",
"core-js": "^3.23.0",
"dat.gui": "^0.7.9",
"dotenv": "^16.3.1",
"postcss": "^8.4.31",
"postcss-loader": "^7.3.3",
"regenerator-runtime": "^0.13.9",
"tailwindcss": "^3.3.3",
"ts-loader": "^9.5.1",
"typescript": "^5.6.2",
"webpack": "^5.74.0",
"webpack-cli": "^4.10.0",
"webpack-notifier": "^1.15.0"
},
"license": "UNLICENSED",
"private": true,
"scripts": {
"dev-server": "encore dev-server",
"dev": "encore dev --watch",
"watch": "encore dev --watch",
"build": "encore production --progress"
},
"dependencies": {
"@hotwired/stimulus": "^3.2.2",
"@hotwired/turbo": "^8.0.12",
"@symfony/stimulus-bridge": "^3.2.2",
"axios": "^1.7.7",
"datatables.net-dt": "^2.1.6",
"datatables.net-rowreorder-dt": "^1.5.0",
"gsap": "^3.12.2",
"marked": "^10.0.0",
"three": "^0.158.0",
"threejs-object-controls": "^1.2.8"
}
}
|
I just fixed it somehow, but i'm not sure how. I just deleted my public/assets folder and rebuilt it. now the error is gone |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi everyone
I'm using symfony 7 with encore.
i dont know what i'm doing wrong here. i always get the following error in my Dev-Tools-Console:
Uncaught TypeError: Failed to resolve module specifier "@symfony/stimulus-bridge". Relative references must start with either "/", "./", or "../".
this is my webpack config:
my assets/controllers.json file:
main.ts:
I cannot get rid of the error. Has anyone had this issue as well?
Thanks for your help!
The text was updated successfully, but these errors were encountered: