Skip to content
New issue

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

The example no longer builds #10

Open
boatcoder opened this issue Nov 21, 2021 · 0 comments · May be fixed by #11
Open

The example no longer builds #10

boatcoder opened this issue Nov 21, 2021 · 0 comments · May be fixed by #11

Comments

@boatcoder
Copy link

$ npm run build

> example@1.0.0 build
> npx parcel build src/index.html

Need to install the following packages:
  parcel
Ok to proceed? (y) y
npm WARN deprecated request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
🚨 Build failed.

@parcel/transformer-js: Browser scripts cannot have imports or exports.

  /private/tmp/use-voice-recorder/example/src/index.tsx:1:1
  > 1 | import * as ReactDOM from 'react-dom';
  >   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    2 | import * as React from "react";
    3 | import { useEffect, useState } from "react";

  /private/tmp/use-voice-recorder/example/src/index.html:10:5
     9 |     <link rel="stylesheet" href="./styles.css" />
  > 10 |     <script src="index.tsx"></script>
  >    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ The environment was originally created here
    11 |     <title>Document</title>
    12 | </head>

  💡 Add the type="module" attribute to the <script> tag.
  📝 Learn more
@boatcoder boatcoder linked a pull request Nov 21, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant