Troubleshooting Typesense UI Build Errors
TLDR Black was encountering errors when trying to build a Typesense UI on an Oracle VM instance. Despite Jason's suggestions to change parcel versions and check node versions, the issue remained unresolved. Black decided to try in a new VM instance.
Nov 13, 2022 (11 months ago)
Black
02:09 PMBut I got some errors after the
npm start
:> ubuntu@instance-20221112-1515:/typesense/typesense-instantsearch-demo$ sudo npm start
>
> > [email protected] start
> > parcel index.html --port 3000
>
> Server running at http://localhost:3000
> 🚨 Build failed.
>
> @parcel/transformer-js: Browser scripts cannot have imports or exports.
>
> /typesense/typesense-instantsearch-demo/src/app.js:1:1
> > 1 | import TypesenseInstantSearchAdapter from "typesense-instantsearch-adapter";
> > | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> 2 |
> 3 | const typesenseInstantsearchAdapter = new TypesenseInstantSearchAdapter({
>
> /typesense/typesense-instantsearch-demo/index.html:44:3
> 43 |
> > 44 | <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/algoliasearch-lite.umd.js"></script>
> > | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ The environment was originally created here
> 45 | <script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
> 46 | <script src="./src/app.js"></script>
>
> 💡 Add the type="module" attribute to the <script> tag.
> 📝 Learn more: https://parceljs.org/languages/javascript/#classic-scripts
Jason
02:16 PMBlack
02:20 PMBlack
02:22 PM> ubuntu@instance-20221112-1515:/typesense/typesense-instantsearch-demo$ sudo npm start
>
> > [email protected] start
> > parcel index.html --port 3000
>
> Server running at http://localhost:3000
> 🚨 /typesense/typesense-instantsearch-demo/favicon.png: Invalid Version: undefined
> at new SemVer (/typesense/typesense-instantsearch-demo/node_modules/@babel/preset-env/node_modules/semver/semver.js:314:11)
> at compare (/typesense/typesense-instantsearch-demo/node_modules/@babel/preset-env/node_modules/semver/semver.js:647:10)
> at Function.lt (/typesense/typesense-instantsearch-demo/node_modules/@babel/preset-env/node_modules/semver/semver.js:688:10)
> at /typesense/typesense-instantsearch-demo/node_modules/@babel/preset-env/lib/index.js:225:11
> at Object.default (/typesense/typesense-instantsearch-demo/node_modules/@babel/helper-plugin-utils/lib/index.js:31:12)
> at getEnvPlugins (/typesense/typesense-instantsearch-demo/node_modules/parcel/src/transforms/babel/env.js:62:34)
> at getEnvConfig (/typesense/typesense-instantsearch-demo/node_modules/parcel/src/transforms/babel/env.js:12:25)
> at async getBabelConfig (/typesense/typesense-instantsearch-demo/node_modules/parcel/src/transforms/babel/config.js:32:19)
> at async babelTransform (/typesense/typesense-instantsearch-demo/node_modules/parcel/src/transforms/babel/transform.js:6:16)
> at async JSAsset.pretransform (/typesense/typesense-instantsearch-demo/node_modules/parcel/src/assets/JSAsset.js:83:5)
Jason
02:23 PMJason
02:23 PMBlack
02:25 PMJason
02:30 PMBlack
02:36 PMBlack
02:36 PMNov 14, 2022 (11 months ago)
Jason
08:37 PMNov 19, 2022 (11 months ago)
Black
10:47 AMTypesense
Indexed 2779 threads (79% resolved)
Similar Threads
Troubleshooting 400 Error When Upgrading Typesense Firestore Extension
Orion experienced a `400` error after updating the Typesense Firestore extension, causing issues with cloud functions. They traced the issue back to a data type conflict in their Typesense collection schema after updating. With help from Jason and Kishore Nallan, they resolved the issue by recreating the collection.
Typescript Support and Import Issues with Typesense
Ahmad faced trouble with Typesense support for Typescript. Jason assisted by suggesting checks and solutions. Phil suggested modifying the import statement. Ultimately, the issue was resolved with a change from Jason in version `v1.1.2`.
Troubleshooting Issues with DocSearch Hits and Scraper Configuration
Rubai encountered issues with search result priorities and ellipsis. Jason helped debug the issue and suggested using different versions of typesense-docsearch.js, updating initialization parameters, and running the scraper on a Linux-based environment. The issues related to hits structure and scraper configuration were resolved.
Resolving Multilingual Search Function in Typesense Software
Bill is having difficulty with multilingual search functionality in Typesense software. Developer Kishore Nallan suggested setting a language locale and provided a demo build. The build solution had some issues, and after multiple rounds of software updates and troubleshooting, the problem still persists.
Resolving Connection Issues on Ubuntu 21.10
Philipe faced a problem with TypeSense running on Ubuntu 21.10. After troubleshooting, Jason and Kishore Nallan suggested a binary to solve the compatibility issue, which resolved the issue.