I want to use TributeJS to mention users in my application but after I have added the package, the import is giving me an error in the console. here is what I have:
# package.json
{
"dependencies": {
"tributejs": "^5.1.3",
"trix": "^1.0.0"
}
}
# mentions_controller
import { Controller } from "@hotwired/stimulus";
import Tribute from "tributejs";
import Trix from "trix";
require("tributejs/tribute.css")
export default class extends Controller { ...
.
.
}
I am getting this in the console [![developer console error][1]][1]