We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rocket build
TypeError: Cannot read properties of undefined (reading 'startsWith')
Steps to reproduce:
npx @rocket/create@latest
npm install
@rollup/plugin-json
npm i -D @rollup/plugin-json
config/rocket.config.js
import json from '@rollup/plugin-json'; import { addPlugin } from 'plugins-manager'; /** @type {import('@rocket/cli').RocketCliOptions} */ export default { setupDevServerAndBuildPlugins: [addPlugin(json, { }, { location: 'top' })], };
npm run build
This is the error that shows up:
guillem@guillem-thinkpad:~/projects/lab/rocket-commonjs-plugin-repro$ npm run build > [email protected] build > rocket build Engine building... Generating Open Graph Images... Optimize Production Build... TypeError: Cannot read properties of undefined (reading 'startsWith') at Object.transform (/home/guillem/projects/lab/rocket-commonjs-plugin-repro/node_modules/@web/dev-server-rollup/dist/rollupAdapter.js:228:30) at file:///home/guillem/projects/lab/rocket-commonjs-plugin-repro/node_modules/rollup/dist/es/shared/rollup.js:22717:40 { code: 'PLUGIN_ERROR', plugin: 'json', hook: 'transform', id: '/home/guillem/projects/lab/rocket-commonjs-plugin-repro/_site-dev/inline-module-ad21fcfbb3d325880e51446273377108.js', watchFiles: [ '/home/guillem/projects/lab/rocket-commonjs-plugin-repro/_site-dev/404.html',
Here is a reproduction repository: https://github.com/guillemcordoba/rocket-commonjs-plugin-repro
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Steps to reproduce:
npx @rocket/create@latest
, select the documentation theme.npm install
.@rollup/plugin-json
withnpm i -D @rollup/plugin-json
.config/rocket.config.js
, adding the rollup json plugin as stated in the documentation:npm run build
.This is the error that shows up:
Here is a reproduction repository: https://github.com/guillemcordoba/rocket-commonjs-plugin-repro
The text was updated successfully, but these errors were encountered: