I wish to reference the js data file in the framework
I write like this
<code>import Configs from "../data/configs";
console.log(Configs);
</code>
<code>import Configs from "../data/configs";
console.log(Configs);
</code>
import Configs from "../data/configs";
console.log(Configs);
in chrome no output
use export same not working
<code>const Configs = [
{
"id": 0,
"cover": "1.webp"
}
]
export default Configs
</code>
<code>const Configs = [
{
"id": 0,
"cover": "1.webp"
}
]
export default Configs
</code>
const Configs = [
{
"id": 0,
"cover": "1.webp"
}
]
export default Configs
1