You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I hit a bunch of issues trying a simple example to get this up and running, perhaps I did it wrong?
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './internal' is not defined by "exports" in /Users/thomasreggi/Desktop/astro-compiler/node_modules/astro/package.json imported from /Users/thomasreggi/Desktop/astro-compiler/example.mjs
"./internal": "./dist/runtime/server/index.js",
and:
file:///Users/thomasreggi/Desktop/astro-compiler/node_modules/astro/dist/runtime/server/astro-global.js:20
const projectRoot = new Url(projectRootStr);
^
ReferenceError: Url is not defined
at createAstro (file:///Users/thomasreggi/Desktop/astro-compiler/node_modules/astro/dist/runtime/server/astro-global.js:20:23)
at file:///Users/thomasreggi/Desktop/astro-compiler/example.mjs:22:17
at ModuleJob.run (node:internal/modules/esm/module_job:198:25)
at async Promise.all (index 0)
at async ESMLoader.import (node:internal/modules/esm/loader:385:24)
at async loadESM (node:internal/process/esm_loader:88:5)
at async handleMainPromise (node:internal/modules/run_main:61:12)
The project root:
{ projectRootStr: '.' }
is being passed into const projectRoot = new URL(projectRootStr);
The text was updated successfully, but these errors were encountered:
reggi
changed the title
🐛 BUG:
🐛 BUG: Internal not defined in exports, projectRootStr errors in new URL, Cannot read properties of undefined (reading 'createAstro')
Aug 31, 2022
reggi
changed the title
🐛 BUG: Internal not defined in exports, projectRootStr errors in new URL, Cannot read properties of undefined (reading 'createAstro')
🐛 BUG(S): Internal not defined in exports, projectRootStr errors in new URL, Cannot read properties of undefined (reading 'createAstro')
Aug 31, 2022
What version of
@astrojs/compiler
are you using?^0.23.4
What package manager are you using?
npm
What operating system are you using?
mac
Describe the Bug
Demo here: https://github.com/reggi/astro-compiler-issues
I hit a bunch of issues trying a simple example to get this up and running, perhaps I did it wrong?
and:
The project root:
is being passed into
const projectRoot = new URL(projectRootStr);
in this file
Then I fixed that by changing it to
const projectRoot = projectRootStr
But now the generated code doesn't work:
Link to Minimal Reproducible Example
https://github.com/reggi/astro-compiler-issues
The text was updated successfully, but these errors were encountered: