Open grosscol opened 2 years ago
Verify that it was not the change in path that is causing the issue with the loaders. Within the tabulator-tables 5 package, copy the the css to the path they were placed in the tabulator-tables 4 package. Observe it this changes how the CSS is being handled by the webpack loaders.
Experiments in another webpack 5 environment showed that the file was being found and loaded, but not included in the final bundle.
Problem
Importing the tabulator tables styles using a relative path to the node module does not behave as expected. Confoundingly, the import of the styles from the bootstrap node module behaves as expected. The relevant docs from Vue's static asset handling indicates the tabulator-tables import should work.
Some discussion about this issue on a VueJS forum post
Existing research
The webpack config that vue-cli ends up using can be profiled using webpack stats:
Looking at the output there, the tabulator-tables module ends up with a
null
resolved module. E.g.Workaround
Copying the styles from the tabulator-tables module and then importing them as a project asset is the functioning workaround.
Desired State