Tried to use this in a vue 3 application. I have"version": "2.0.0" installed using npm
✘ [ERROR] Could not resolve "crawler"
node_modules/timezone-select-js/crawler.js:5:24:
5 │ const Crawler = require('crawler');
│ ~~~~~~~~~
╵ "./crawler"
Use the relative path "./crawler" to reference the file
"node_modules/timezone-select-js/crawler.js". Without the leading "./", the path "crawler" is
being interpreted as a package path instead.
2:30:05 PM [vite] error while updating dependencies:
Error: Build failed with 1 error:
node_modules/timezone-select-js/crawler.js:5:24: ERROR: Could not resolve "crawler"
I get the error above. I'll get the error by just including the file without even trying to access any of the functions.
Here is my code that causes error.
<script>
import { defineComponent } from "vue";
import useAuthUser from "src/composables/UseAuthUser";
import { ref } from "vue";
import { listTz, clientTz } from "timezone-select-js";
export default defineComponent({
name: "PageMe",
setup() {
const { user } = useAuthUser();
return {
user,
};
},
});
</script>
Tried to use this in a vue 3 application. I have"version": "2.0.0" installed using npm
I get the error above. I'll get the error by just including the file without even trying to access any of the functions.
Here is my code that causes error.