Open rezelute opened 2 years ago
Ran into the similar issue while using npm, even without modification to any file directly after clone and "npm i" the build fails. Need to investigate the compatibility issue. Pointers are welcomed!
Same error, I think it cause by vite@3.
Confirmed this breaks with latest version of vite@3.1.0
Interestingly when I add type: "module"
to package.json it works.
@amir20 can you tell me where you added type: "module"
, to which package.json
?
@dobromir-hristov See my change https://github.com/amir20/amir20.github.io/commit/834b7a86ee2417c53d2b7cb8f2161ba4ff0c2f69#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519R5
I added it to my own package.json file. I also saw the error which suggested the same thing.
for me, it doesn't work with type: "module"
too. Reverting back to vite@2 solves it for now.
Needs reproduction.
Describe the bug
Hi, I am sorry if this is not a bug in vite-ssg but im finding it very hard to know whats causing this issue. If you could point me in the right direction I would appreciate it 😃 .
I am using the following packages:
"vite-ssg": "^0.20.2",
"@vuelidate/core": "^2.0.0-alpha.43",
"@vuelidate/validators": "^2.0.0-alpha.31",
In a test.vue file I then
import useVuelidate from "@vuelidate/core";
.Package.json contains:
"type": "module",
When i try to build the project using:
vue-tsc --noEmit && vite-ssg build
I get the following error:Note that if i set the ssgOptions format to cjs it seems to work however I dont understand why when package.json is set to "type": "module".
Reproduction
Try using vuelidate with vite-ssg
System Info
Used Package Manager
npm
Validations