aboutsummaryrefslogtreecommitdiff
path: root/examples/hello-next/pages/errortest.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'examples/hello-next/pages/errortest.tsx')
-rw-r--r--examples/hello-next/pages/errortest.tsx14
1 files changed, 14 insertions, 0 deletions
diff --git a/examples/hello-next/pages/errortest.tsx b/examples/hello-next/pages/errortest.tsx
new file mode 100644
index 000000000..49a293df7
--- /dev/null
+++ b/examples/hello-next/pages/errortest.tsx
@@ -0,0 +1,14 @@
+import IndexPage from "pages/index";
+
+export default function ErrorTestPage() {
+ class Wow {}
+
+ const ladee = "",
+ foo = { bar: { boom: new Wow() } };
+
+ if (typeof window === "undefined") {
+ const Doge = import("wow/such-esm/very-import");
+ }
+
+ return <IndexPage />;
+}