Skip to main content
Glama
bun_set_up.md2.1 kB
--- createdAt: 2025-05-20 updatedAt: 2025-06-29 title: bun का उपयोग करते समय मुझे मॉड्यूल नहीं मिला त्रुटि मिलती है description: bun का उपयोग करते समय त्रुटि को ठीक करें। keywords: - bun - मॉड्यूल नहीं मिला - intlayer - कॉन्फ़िगरेशन - पैकेज प्रबंधक slugs: - frequent-questions - bun-set-up --- # bun का उपयोग करते समय मुझे मॉड्यूल नहीं मिला त्रुटि मिलती है ## समस्या विवरण जब आप bun का उपयोग करते हैं, तो आपको इस प्रकार की त्रुटि मिल सकती है: ```bash Cannot find package 'intlayer' from '/workspace/packages/@intlayer/config/dist/cjs/utils/ESMxCJSHelpers.cjs' undefined ``` ## कारण Intlayer आंतरिक रूप से `require` का उपयोग करता है। और bun `require` फ़ंक्शन को केवल `@intlayer/config` पैकेज के पैकेजों को हल करने के लिए सीमित करता है, पूरे प्रोजेक्ट के बजाय। ## समाधान ### कॉन्फ़िगरेशन में `require` फ़ंक्शन प्रदान करें ```ts ts; const config: IntlayerConfig = { build: { require, // कॉन्फ़िगरेशन में require फ़ंक्शन प्रदान करें }, }; export default config; ``` ```ts fileName="next.config.ts" codeFormat="typescript" import { withIntlayer } from "next-intlayer/server"; const configuration = withIntlayer({ require, // require फ़ंक्शन के साथ Intlayer कॉन्फ़िगरेशन सेट करें }); export default configuration; ```

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/aymericzip/intlayer'

If you have feedback or need assistance with the MCP directory API, please join our Discord server