W
Wasp2w ago
NEROX

Consider updating to 'node16', 'nodenext', or 'bundler'

[ Wasp ] There are types at '/home/rootall/apps/WhiteHatSeoTactics/app/node_modules/wasp/dist/ext-src/server/webScraper.d.ts', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'. What this means? What I shoud do?
8 Replies
kapa.ai
kapa.ai2w ago
Hi @NEROX. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- Based on the knowledge sources provided, I don't have specific information about this particular error message or how to resolve it in the context of Wasp. However, I can provide some general information about Wasp's Node.js version requirements that might be relevant to your situation: As of the latest information available, Wasp has recently updated its Node.js version requirements. According to a GitHub issue comment, Wasp now allows any Node version >= 18. This change was implemented to make Wasp's node requirements more reasonable and flexible. Given that your error message suggests updating to 'node16', 'nodenext', or 'bundler', it's possible that you might be using an older version of Wasp or Node.js. To resolve this, you could try the following steps: 1. Ensure you're using the latest version of Wasp. 2. Update your Node.js version to 18 or higher, as this is now supported by Wasp. If you're still encountering issues after updating, it would be best to reach out to the Wasp community or maintainers directly for more specific guidance on this error message. The knowledge sources provided don't contain enough information to give a definitive solution to this particular error. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @NEROX, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
NEROX
NEROXOP2w ago
@kapa.ai how to check my node version from linux terminal
kapa.ai
kapa.ai2w ago
Let me check the knowledge base for you again. One moment! :books: ---------------------- To check your Node.js version from the Linux terminal, you can use the following command:
node -v
node -v
This command is mentioned in the Wasp documentation as a way to verify the version of Node.js currently being used in your shell session. After running this command, you should see output that displays your current Node.js version, for example:
v20.8.1
v20.8.1
Remember that Wasp requires Node.js version 18 or higher. If you find that your version is lower than 18, you may need to update your Node.js installation. The Wasp documentation recommends using nvm (Node Version Manager) for managing your Node.js installation versions if you need to switch between different versions. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @NEROX, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
NEROX
NEROXOP2w ago
@kapa.ai if my version is v18.20.4 what means the previous warnings?: [ Wasp ] There are types at '/home/rootall/apps/WhiteHatSeoTactics/app/node_modules/wasp/dist/ext-src/server/webScraper.d.ts', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'.
kapa.ai
kapa.ai2w ago
Let me check the knowledge base for you again. One moment! :books: ---------------------- Based on the information provided in the knowledge sources, I don't have specific details about this particular warning message in the context of Wasp. However, I can provide some general insights based on the information available: 1. Your Node.js version (v18.20.4) is compatible with Wasp's current requirements. According to a GitHub issue comment, Wasp now supports any Node.js version >= 18, so your version is sufficient. 2. The warning message you're seeing appears to be related to TypeScript's module resolution strategy rather than a Wasp-specific issue. It suggests that there might be a mismatch between your project's TypeScript configuration and the module resolution strategy being used. 3. The message recommends updating to 'node16', 'nodenext', or 'bundler' module resolution strategies. These are TypeScript compiler options that determine how modules are resolved. To address this warning, you might need to update your TypeScript configuration (tsconfig.json) to use a more recent module resolution strategy. However, without more context about your specific Wasp project setup, it's difficult to provide a definitive solution. If this warning is causing issues with your Wasp project, I recommend: 1. Checking if you're using the latest version of Wasp, as newer versions might have addressed this issue. 2. Reviewing your project's TypeScript configuration, if you have one, and considering updating the moduleResolution option. 3. If the problem persists, reaching out to the Wasp community or maintainers through their Discord channel or GitHub issues for more specific guidance, as the provided knowledge sources don't contain enough information to fully resolve this particular warning. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @NEROX, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
NEROX
NEROXOP2w ago
@kapa.ai // =============================== IMPORTANT ================================= // // This file is only used for Wasp IDE support. You can change it to configure // your IDE checks, but none of these options will affect the TypeScript // compiler. Proper TS compiler configuration in Wasp is coming soon :) { "compilerOptions": { "module": "esnext", "target": "esnext", // We're bundling all code in the end so this is the most appropriate option, // it's also important for autocomplete to work properly. "moduleResolution": "bundler", // JSX support "jsx": "preserve", "strict": true, // Allow default imports. "esModuleInterop": true, "lib": [ "dom", "dom.iterable", "esnext" ], "allowJs": true, "typeRoots": [ // This is needed to properly support Vitest testing with jest-dom matchers. // Types for jest-dom are not recognized automatically and Typescript complains // about missing types e.g. when using toBeInTheDocument and other matchers. "node_modules/@testing-library", // Specifying type roots overrides the default behavior of looking at the // node_modules/@types folder so we had to list it explicitly. // Source 1: https://www.typescriptlang.org/tsconfig#typeRoots // Source 2: https://github.com/testing-library/jest-dom/issues/546#issuecomment-1889884843 "node_modules/@types" ], // Since this TS config is used only for IDE support and not for // compilation, the following directory doesn't exist. We need to specify // it to prevent this error: // https://stackoverflow.com/questions/42609768/typescript-error-cannot-write-file-because-it-would-overwrite-input-file "outDir": ".wasp/phantom" } } I'm using Wasp 15, something to be updated?
kapa.ai
kapa.ai2w ago
Let me check the knowledge base for you again. One moment! :books: ---------------------- Based on the information provided in the knowledge sources and your question, I don't have specific details about Wasp version 15 or any required updates for the tsconfig.json file you've shared. However, I can provide some general insights based on the available information: 1. The tsconfig.json file you've shared appears to be a configuration file for TypeScript in a Wasp project. The comment at the top suggests that this file is primarily used for IDE support and doesn't affect the TypeScript compiler in Wasp directly. 2. According to a GitHub issue, there was discussion about figuring out Wasp's tsconfig story for a restructuring. However, the issue was closed without full resolution, and a new issue was opened to address this topic further. 3. The configuration you've shared includes "moduleResolution": "bundler", which aligns with the recommendation in the warning message you received earlier about considering "bundler" as a module resolution strategy. 4. Given that you're using Wasp 15, which seems to be a recent version (as the knowledge sources don't mention this specific version), it's possible that this configuration is already up-to-date. However, to ensure you have the most current information and configuration: 1. Check the official Wasp documentation for any recent updates or recommendations regarding TypeScript configuration. 2. If you're experiencing any specific issues or warnings related to this configuration, consider reaching out to the Wasp community through their Discord channel or creating a GitHub issue for more tailored assistance. 3. Keep an eye on Wasp's GitHub repository for any announcements or changes related to TypeScript configuration in future releases. Remember, the comment in your tsconfig.json mentions that "Proper TS compiler configuration in Wasp is coming soon," which suggests that there might be changes or improvements to TypeScript handling in future Wasp versions. If you're not experiencing any issues with your current setup, this configuration might be sufficient for now. However, for the most accurate and up-to-date information, I recommend checking the official Wasp documentation or reaching out to the Wasp community directly. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @NEROX, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
Vinny (@Wasp)
Vinny (@Wasp)2w ago
Going ok @NEROX ?

Did you find this page helpful?