Encountering a Lerna success error message: "No packages were detected containing the lifecycle script 'typecheck'."

I'm encountering an issue when trying to start lerna. The error message I receive is 'lerna success run No packages found with the lifecycle script 'typecheck'. How can I resolve this? Here's a snippet from my package.json file:

{
 "name": "test-web",
 "private": true,
 "scripts": {
   "typecheck": "lerna run typecheck",
   "prepare": "lerna run prepare"
 },
 "devDependencies": {
   "husky": "^2.4.1",
   "lerna": "^3.22.1",
   "tslint": "^5.17.0"
 },
 "husky": {
   "hooks": {
     "pre-push": "yarn lint && yarn typecheck"
   }
 },
 "workspaces": [
   "frontend/**"
 ],
 "dependencies": {
   "@emotion/core": "^10.0.0",
   "@emotion/styled": "10.0.12",
   "@octokit/core": "^3.2.1",
   "glob": "*",
   "jest-emotion": "10.0.11",
   "prop-types": "^15.5.4",
   "react": "16.8.6",
   "react-router-dom": "5.0.0",
   "react-test-renderer": "16.8.6",
   "redux": "^4.0.5",
   "redux-persist": "5.10.0",
   "typescript": "^4.0.5"
 }
}

And here's a snippet from my lerna.json file:

{
 "npmClient": "yarn",
 "version": "0.0.1",
 "packages": [
   "frontend/**"
 ],
 "useWorkspaces": true
}

Answer №1

Discovering the solution is key. To start, diligently inspect your local packages for any included local scripts; such as a typecheck script in my case. Next, ensure to review the devDependencies within your local scripts. Lastly, be sure to thoroughly verify all workspaces.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Implementing a JavaScript file and ensuring W3C compliance

I recently purchased a template that included a javascript file in the main page with the following code: <script src="thefile.js?v=v1.9.6&sv=v0.0.1"></script> Upon inspection, I noticed there are two arguments at the end of the file ...

Method for creating a randomized layout grid in MaterialUI where each row contains a total of three columns

In the process of developing a React application that interacts with the reddit api and oAuth. Utilizing MaterialUI, I am currently experimenting with the Component to create a 3 column grid of images with dynamically generated column widths, maxing out a ...

How can you efficiently access the 'app' object within a distinct route file?

When using Express 4, the default behavior is to load routes from a separate file like so: app.use('/', routes); This would load routes/index.js. I am working with a third-party library that directly interacts with the app object itself. What& ...

Show the percentage of completion on the progress bar while uploading with AJAX

I'm having trouble updating the current upload value on my progress bar in real-time. I know how to do it when the progress bar has stopped, but I can't get it to update continuously. xhr.upload.onprogress = function(e) { if (e.lengthComputa ...

AngularJS not refreshing the view

I'm having an issue in my app where I calculate the total bill and display it on my view. The first time, everything works fine. However, when I increment the $scope.bill_total, the view is not updating even though I can see the change in the console. ...

How does the method of including JavaScript libraries in HTML differ from adding them as npm dependencies?

Upon browsing through npm highly regarded packages, I noticed that popular projects such as Grunt, lodash, and underscore are readily available. I have always utilized these in the traditional manner: <script src="js/lib/lodash.min.js"></script& ...

Await the reply from Angular while using Selenium WebDriver

I am currently automating an Angular-based application using Selenium WebDriver (Java). After selecting an option from a dropdown in the Application Under Test (AUT), data is loaded onto the page through an AJAX call to a web service. However, there is no ...

When making an AJAX request, ensure the response is in JSON format with individual properties rather than as a single

Here's an example of an AJAX request with JSON dataType: JavaScript: function checkForNewPosts() { var lastCustomerNewsID = <?php echo $customers_news[0]['id']; ?>; $.ajax({ url: "https://www.example.com/check_for_n ...

Tips for avoiding unnecessary re-renders

The component I created sends props to both the checkbox and range components. During testing, I noticed that when a change was made in the range component, the checkbox also re-rendered even though it wasn't changed, and vice versa. Issue: When ...

Issue with IE7 when using JQuery to repopulate a <ul> unordered list: new elements showing up under previously hidden elements

Within this javascript snippet, I am utilizing the code below to clear out a list of countries within a <ul> element and then repopulate it (with a slight animation using jQuery's hide() function). The functionality works smoothly in Chrome and ...

Actions cannot be performed on elements generated by ng-repeat

I am facing a challenge where I need to display a list of languages on a page, allowing users to change their selections based on previous choices. To achieve this functionality, I have written the following code snippet: ... <tbody> & ...

The filtering function using jQuery and ajax

Hello, I'm currently working on a website that compares the prices of domain names. I could use some assistance with a specific function that I'm trying to implement. At the moment, there is a section on the website where users can click on dif ...

Integrating React with the math.js library for enhanced functionality

My React component is having trouble integrating with the math.js library. When I attempt to display the output of the code in the console, everything works fine without resetting the state. However, when I try to use the result of the evaluate() function ...

The textureLoader seems to be malfunctioning when trying to load a normal map

Having an issue loading a texture in three.js for use as a normal map. No errors are being reported, but the texture fails to load, resulting in a black sphere. import * as THREE from 'three'; /** Setting up the scene. */ const canvas = document ...

Ensuring Proper Tabulator Width Adjustment Across All Browser Zoom Levels

<div id="wormGearTabulatorTable" style="max-height: 100%; max-width: 100%; position: relative;" class="tabulator" role="grid" tabulator-layout="fitDataTable"><div class="tabulator-header" role="rowgroup"><div class="tabulator-header-co ...

Display the default child of vue-router 4

Need Assistance with Rendering Default Child View in Vue I am currently facing an issue with rendering the default child view for the Category view. I have come across a similar problem discussed on Stack Overflow, but it seems to be related to VUE2 and o ...

Updating the state of an object within a mapping function

I've been struggling with this issue for two days now. Despite my efforts to find a solution online, I am still stuck and starting to believe that I might be missing something. The main functionality of the app is to click a button and watch an apple ...

Tips for displaying specific information using Javascript depending on the input value of an HTML form

I am working on an HTML form that includes a dropdown list with four different names to choose from. window.onload = function(){ document.getElementById("submit").onclick = displaySelectedStudent; } function displaySelectedStu ...

JS setTimeout not postponing execution

Attempting to introduce a delay before an AJAX call. var delay = 2000; $("#c_name").on("keyup", function() { var entered = $(this).val(); if (entered.length > 1) { setTimeout(dosearch(entered), delay) } }); Struggling to implement a d ...

I am having trouble retrieving the array value from the response sent by my server

After receiving a dictionary from my server, when I try to access the values using the following code: {"filters":{ "Facture": [ "Магма (Тычок)", "Тонкий кирпич", "Гладк ...