Giter Club home page Giter Club logo

vite-3-cjs-bug's Introduction

Bug reproduction.

git clone [email protected]:brillout/vite-3-cjs-bug
cd vite-3-cjs-bug/
pnpm install
pnpm run build

Same as single line (copy-paste me):

git clone [email protected]:brillout/vite-3-cjs-bug && cd vite-3-cjs-bug/ && pnpm install && pnpm run build

Throws:

vite v3.0.0-beta.5 building SSR bundle for production...
โœ“ 56 modules transformed.
'escapeInject' is not exported by node_modules/.pnpm/[email protected][email protected]/node_modules/vite-plugin-ssr/dist/cjs/node/index.js, imported by node_modules/.pnpm/[email protected]_biqbaboplfbrettd7655fr4n2y/node_modules/vikepress/src/algolia/DocSearch.ts
file: /home/romuuu/tmp/vite-3-babel-bug/node_modules/.pnpm/[email protected]_biqbaboplfbrettd7655fr4n2y/node_modules/vikepress/src/algolia/DocSearch.ts:1:0
1: import { escapeInject } from 'vite-plugin-ssr'
   ^
2: import { PageContextResolved } from '../config/resolvePageContext'
file:///home/romuuu/tmp/vite-3-babel-bug/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/rollup.js:1858
        base = Object.assign(new Error(base.message), base);
                             ^

Error: 'escapeInject' is not exported by node_modules/.pnpm/[email protected][email protected]/node_modules/vite-plugin-ssr/dist/cjs/node/index.js, imported by node_modules/.pnpm/[email protected]_biqbaboplfbrettd7655fr4n2y/node_modules/vikepress/src/algolia/DocSearch.ts

The Vite config can be edited at node_modules/vikepress/vite.config.ts.

vite-3-cjs-bug's People

Contributors

brillout avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.