Closed
Description
Version
2.10.0
Vue Version
2.6.14
Link to minimal reproduction
https://github.com/gweesin/test-tiny-vue-in-vue2
you also can open it online by stackblitz:
https://stackblitz.com/github/gweesin/test-tiny-vue-in-vue2
Step to reproduce
pnpm add -S @opentiny/vue@2
- import a component and use it
import { TimeLine } from "@opentiny/vue";
export default {
render(h) {
return h(TimeLine);
},
};
What is expected
compile without error
What is actually happening
The problem is that sub-module (or alias component) defined type: module
, so when import files, it must include suffix of files, but not.
actual:
import { isDate } from "@opentiny/vue-renderless/common/deps/date-util";
expect:
import { isDate } from "@opentiny/vue-renderless/common/deps/date-util.js";
Any additional comments (optional)
No response