-
Notifications
You must be signed in to change notification settings - Fork 360
Closed
Description
Given the following exports in package.json
"exports": {
".": {
"import": {
"webpack": "./dist/index.import.js",
"default": "./dist/index.import.mjs"
},
"require": "./dist/index.js",
"script": "./dist/index.umd.js",
"default": "./dist/index.import.mjs"
}
},
fails with:
TypeError: Cannot read property '.' of undefined
at walk (C:\VSProjects\github\mobx-keystone\node_modules\microbundle\dist\cli.js:810:22)
at walk (C:\VSProjects\github\mobx-keystone\node_modules\microbundle\dist\cli.js:810:10)
at walk (C:\VSProjects\github\mobx-keystone\node_modules\microbundle\dist\cli.js:810:10)
at walk (C:\VSProjects\github\mobx-keystone\node_modules\microbundle\dist\cli.js:810:10)
at getMain (C:\VSProjects\github\mobx-keystone\node_modules\microbundle\dist\cli.js:837:53)
at createConfig (C:\VSProjects\github\mobx-keystone\node_modules\microbundle\dist\cli.js:927:45)
at microbundle (C:\VSProjects\github\mobx-keystone\node_modules\microbundle\dist\cli.js:659:18)
Apparently it is first walking inside the ".", then inside "import" and then it fails because "import" is an object without ".", "import" or "module"
It used to work in 0.13.1 but started failing in 0.13.2 and 0.13.3
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels