Skip to content

bug: v6 beta not working with react and vite #23671

Closed
@aaronksaunders

Description

@aaronksaunders

Prequisites

Ionic Framework Version

  • v4.x
  • v5.x
  • v6.x

Current Behavior

Vite, Rollup, and ESBuild — oh my!
As an added bonus, Framework v6 will be usable with tooling such as Vite, Rollup, and ESBuild, giving you even more options for building apps. This is something that developers have been asking us about for a while, so we are excited to roll this support out.

Tried following the project upgrade directions for using with react. Started a new project using vite. Added IonApp to project and the application crashed.

Code does not run, error message attached below

Expected Behavior

code to run without error

Steps to Reproduce

import React from "react";
import "./App.css";
import { IonApp } from "@ionic/react";

function App() {

  return (
    <IonApp>
      <p>Hello Vite + React!</p>
    </IonApp>
  );
}

export default App;

Code Reproduction URL

No response

Ionic Info

No response

Additional Information

Screen Shot 2021-07-21 at 9 44 35 PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions