Employing the Eclipse Palantir TypeScript Plug-in in conjunction with JSPM

I currently utilize the Palantir Eclipse TypeScript Plug-in (v1.8.0.v20160223-1645), which functions flawlessly when my d.ts files are stored in the same source folder /src. However, due to JSPM, these files reside in a different folder now, causing issues with locating and importing modules:

/src                      <-- My .ts files are kept here (no js files present)
/dist                     <-- Location where the transpiled js files are placed
/jspm_packages/npm        <-- External d.ts files are located here

The TypeScript properties within the project settings of Eclipse UI include:

Source folder(s):       src
Exported folders(s):    src;jspm_packages/npm
Output folder:          dist
Output file name:       (empty field)

Looking into the com.palantir.typescript.prefs file, we find:

...
build.path.exportedFolder=src; jspm_packages/npm
build.path.sourceFolder=src
compiler.outputDirOption=dist
...

Answer №1

(creator of Eclipse TypeScript) My recommendation would be to include jspm_packages/npm in your source directories. The exported folders may not be necessary, as they are primarily used for exporting assets from a project and are typically utilized in multi-project workspaces where projects have interdependencies.

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

Showing a div based on the selection of multiple options from a multiselect

I am having trouble implementing a show/hide functionality based on a multiselect dropdown in my Angular and Typescript project. Specifically, I want to display a div with another dropdown menu when the user selects a certain option from the multiselect ...

React JS integrated with Stripe

I am in need of generating a token with Stripe.js within a React JS environment, however, I have been unable to find a straightforward solution. In a node.js setting, the process would typically look something like this: stripeClient.tokens.create({ ...

Identifying an Incorrect Function Call in a TypeScript Function from a JavaScript File [TypeScript, Vue.js, JavaScript]

I have a vue2 application and I am looking to incorporate TypeScript into some service files without modifying the existing js/vue files. To enable TypeScript support, I utilized vue-cli which allowed me to successfully add a myService.ts file containing ...

Encountering a problem during the installation process of node.js, npm, and server

My laptop is currently in the process of having node.js and npm installed using the instructions provided here: # Using Ubuntu curl -sL https://deb.nodesource.com/setup_lts.x | sudo -E bash - sudo apt-get install -y nodejs These commands specifically inst ...

There are a total of 152 issues found in the index.tsx file within the react

Despite everything working correctly, I am continuously encountering these errors. Is this a common occurrence? What steps can I take to resolve them? I have developed my react application using Javascript instead of Typescript; however, I don't belie ...

The list of installed drivers is not appearing in the Macaca.js setup on MAC

I am having trouble configuring the installation for macaca.js as it does not display the driver list in CMD. I have tried running the command 'macaca doctor' and also installed the chrome driver using "npm i macaca-chromedriver", but it still do ...

halt execution of npm test and erase any printed content

When I run npm test on my React project, it runs unit tests using jest and react testing library. The test logs (including console log lines added for debugging) are printed to the screen but get deleted after running the tests. It seems like the logs are ...

Neglectful TypeScript null checks overlooking array.length verification

When TypeScript is compiled with strict null checks, the code snippet below does not pass type checking even though it appears to be correct: const arr: number[] = [1, 2, 3] const f = (n: number) => { } while (arr.length) { f(arr.pop()) } The comp ...

Can you identify the specific function type passed through props?

interface IProps { handleCloseModal: React.MouseEventHandler<HTMLButtonElement> returnFunction: () => void; } export default function Modal({ children, returnFunction, handleCloseModal, }: React.PropsWithChildren<IProps>) { cons ...

Encountered a failure while attempting to execute npm install command for Express

Having trouble with the npm install express command due to an error? Here's the error message: $ npm install express npm ERR! fetch failed https://registry.npmjs.org/debug/-/debug-2.1.0.tgz npm ERR! fetch failed https://registry.npmjs.org/etag/-/etag ...

I am encountering an issue where Typescript paths specified in the tsConfig.app.json file are not resolving properly

I have defined path settings in my tsconfig.app.json file like this: "paths": { "@app/core": ["./src/app/core"] } Every time I run a test that includes import statements with relative paths, it throws the following error: ...

Tips for removing the download prompt in Firefox when using Selenium in Typescript

While attempting to download a file in Firefox, a download dialog box pops up. I am looking to disable the download dialog box specifically for zip files so that they are downloaded automatically. Despite trying various preferences settings, the dialog box ...

Separate angular structure into various sections

I am developing a form builder using Angular dynamic form functionality. The form data is loaded from a JSON object, as shown below: jsonData: any = [ { "elementType": "textbox", "class": "col-12 col-md-4 col-sm-12", "key": "first_ ...

Incorporating timed hover effects in React applications

Take a look at the codesandbox example I'm currently working on implementing a modal that appears after a delay when hovering over a specific div. However, I've encountered some challenges. For instance, if the timeout is set to 1000ms and you h ...

Comparing the functions of useMemo and the combination of useEffect with useState

Is there a benefit in utilizing the useMemo hook instead of using a combination of useEffect and useState for a complex function call? Here are two custom hooks that seem to function similarly, with the only difference being that useMemo initially returns ...

Exploring the Telerik platform's capabilities in organizing and handling npm packages

Hey, I am currently in the process of developing a video streaming app using the Telerik platform. Here is the structure of my app: my-project app - package.json - app.js node_modules package.json server.js I have recently included Firebase and Bitmov ...

Encountering numerous errors while attempting to install NPM on Windows 10

PS C:\Users\debro\Documents\Razor> npm install npm ERR! code ENOENT npm ERR! syscall open npm ERR! path C:\Users\debro\Documents\Razor/package.json npm ERR! errno -4058 npm ERR! enoent ENOENT: no such file or dire ...

What is the process for adding tailwind CSS via npm?

Before, I was including Tailwind using a CDN. Now, I have installed it with npm and all three .css files are included, but the styles are not appearing in my HTML document. Here is the directory structure and a link to style.css The content of tailwind.c ...

The function scan() from RXJS Angular 17 is encountering an issue with error code TS2769, indicating that there is no

I'm currently working through an Angular RXJS course by Deborah Kurata and I've encountered a type error that I can't seem to figure out. The error is being thrown from the action stream which uses scan(). Here's the code snippet: priva ...

initiate an animated sequence upon the initialization of the Angular server

Is there a way to launch a Netflix animation after my server has started without success using setTimeout? I don't want to share the lengthy HTML and CSS code. You can view the code for the animation in question by visiting: https://codepen.io/claudi ...