use-voice-recorder icon indicating copy to clipboard operation
use-voice-recorder copied to clipboard

The example no longer builds

Open boatcoder opened this issue 3 years ago • 0 comments

$ npm run build

> [email protected] build
> npx parcel build src/index.html

Need to install the following packages:
  parcel
Ok to proceed? (y) y
npm WARN deprecated [email protected]: 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 [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm WARN deprecated [email protected]: 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 [email protected]: 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 avatar Nov 21 '21 21:11 boatcoder