bluwy / whyframe

Develop components in isolation with just an iframe

Home Page:https://whyframe.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[ Help ] vitepress: TypeError: error loading dynamically imported module

mioe opened this issue · comments

try this example: https://stackblitz.com/edit/bluwy-whyframe-a35ghx
my result in dev mode:
image

package.json

{
	"name": "docs",
	"private": true,
	"type": "module",
	"engines": {
		"node": ">=16",
		"pnpm": ">=6"
	},
	"scripts": {
		"dev": "vitepress dev docs --port 3333 --host",
		"build": "vitepress build docs",
		"preview": "vitepress serve docs",
		"lint": "eslint --ext .js,.vue,.ts,.mjs,.mts --ignore-path .gitignore --fix docs"
	},
	"dependencies": {
		"vue": "^3.2.39"
	},
	"devDependencies": {
		"@mioe/eslint-config": "^0.1.1",
		"@whyframe/core": "^0.1.3",
		"@whyframe/vue": "^0.1.1",
		"eslint": "^8.23.1",
		"sass": "^1.55.0",
		"typescript": "^4.8.3",
		"vite": "^3.1.3",
		"vite-plugin-inspect": "^0.7.2",
		"vitepress": "1.0.0-alpha.15"
	}
}

... in build mode works great :D
image

H @mioe , I can't seem to reproduce it with the stackblitz link you gave, it's working fine for me and locally. Checking the error in the screenshot, it seems like an error of a missing internal virtual module that it's trying to fetch, but I'm not sure how that happens as I've guarded it in-code.

Thanks! I found that it's because of the custom root that I didn't handle, fixed in @whyframe/core v0.1.4