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 have searched for existing issues that already report this problem, without success.
Stencil Version
4.19.0
Current Behavior
Since the #5275 the exports in the package.json where changed.
We are using the parseHtmlToDocument from the mock-doc for our custom output target for an ssr server.
Now we are getting an rollup compile error:
(node-resolve plugin) Could not resolve import "@stencil/core/mock-doc" in /.stencil/nlx-hydrate-server/server.js using exports defined in /node_modules/@stencil/core/package.json.
(node-resolve plugin) Could not resolve import "@stencil/core/mock-doc" in undefined using exports defined in /node_modules/@stencil/core/package.json.
(node-resolve plugin) Could not resolve import "@stencil/core/mock-doc" in undefined using exports defined in /node_modules/@stencil/core/package.json.
Expected Behavior
Exporting the mock-doc in the package.json again.
System Info
System: node 20.14.0
Platform: darwin (23.5.0)
CPU Model: Apple M2 Pro (12 cpus)
Compiler: node_modules/@stencil/core/compiler/stencil.js
Build: 1719433468
Stencil: 4.19.0 🏄
TypeScript: 5.4.5
Rollup: 2.56.3
Parse5: 7.1.2
jQuery: 4.0.0-pre
Terser: 5.31.1
[03:13.4] @stencil/core
[03:13.6] v4.19.0 🏄
[03:14.3] build, demo, prod mode, started ...
[03:14.3] transpile started ...
[03:15.5] transpile finished in 1.21 s
[03:15.5] copy started ...
[03:15.5] generate custom elements + source maps started ...
[03:15.5] generate hydrate app started ...
[03:15.5] generate lazy + source maps started ...
[03:15.5] copy finished (0 files) in 35 ms
[03:15.8] generate custom elements + source maps finished in 274 ms
[03:15.9] generate hydrate app finished in 425 ms
[03:15.9] generate lazy + source maps finished in 426 ms
[03:15.9] generating nlx-hydrate-server started ...
[plugin node-resolve] Could not resolve import "@stencil/core/mock-doc" in .stencil/nlx-hydrate-server/server.js using exports defined in node_modules/@stencil/core/package.json.
[plugin node-resolve] Could not resolve import "@stencil/core/mock-doc" in undefined using exports defined in node_modules/@stencil/core/package.json.
[plugin node-resolve] Could not resolve import "@stencil/core/mock-doc" in undefined using exports defined in node_modules/@stencil/core/package.json.
"@stencil/core/mock-doc" is imported by "@stencil/core/mock-doc?commonjs-external", but could not be resolved – treating it as an external dependency.
[03:16.3] generate nlx-hydrate-server finished in 323 ms
[03:16.3] build finished in 2.00 s
{code}
Prerequisites
Stencil Version
4.19.0
Current Behavior
Since the #5275 the exports in the package.json where changed.
We are using the
parseHtmlToDocument
from themock-doc
for our custom output target for an ssr server.Now we are getting an rollup compile error:
Expected Behavior
Exporting the mock-doc in the
package.json
again.System Info
Steps to Reproduce
npm run build
{code}
[03:13.4] @stencil/core
[03:13.6] v4.19.0 🏄
[03:14.3] build, demo, prod mode, started ...
[03:14.3] transpile started ...
[03:15.5] transpile finished in 1.21 s
[03:15.5] copy started ...
[03:15.5] generate custom elements + source maps started ...
[03:15.5] generate hydrate app started ...
[03:15.5] generate lazy + source maps started ...
[03:15.5] copy finished (0 files) in 35 ms
[03:15.8] generate custom elements + source maps finished in 274 ms
[03:15.9] generate hydrate app finished in 425 ms
[03:15.9] generate lazy + source maps finished in 426 ms
[03:15.9] generating nlx-hydrate-server started ...
[plugin node-resolve] Could not resolve import "@stencil/core/mock-doc" in .stencil/nlx-hydrate-server/server.js using exports defined in node_modules/@stencil/core/package.json.
[plugin node-resolve] Could not resolve import "@stencil/core/mock-doc" in undefined using exports defined in node_modules/@stencil/core/package.json.
[plugin node-resolve] Could not resolve import "@stencil/core/mock-doc" in undefined using exports defined in node_modules/@stencil/core/package.json.
"@stencil/core/mock-doc" is imported by "@stencil/core/mock-doc?commonjs-external", but could not be resolved – treating it as an external dependency.
[03:16.3] generate nlx-hydrate-server finished in 323 ms
[03:16.3] build finished in 2.00 s
{code}
The file
dist/ssr-server/index.js
is not present.Code Reproduction URL
https://github.com/saschanowak/stencil-hydrate-server-demo
Additional Information
No response
The text was updated successfully, but these errors were encountered: