You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ 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
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: