GithubHelp home page GithubHelp logo

Comments (2)

Reinmar avatar Reinmar commented on July 23, 2024

I'm sorry, but I have no idea what might've gone wrong upon deploy to IIS to give such errors.

I'm afaraid you need to investigate the issue yourself.

from ckeditor5.

nguyentienanh59 avatar nguyentienanh59 commented on July 23, 2024

Hi @Reinmar , I have resolved the above errors but now it is reporting an error when I deploy: "TypeError: Failed to resolve module specifier "ckeditor5-custom-build". Relative references must start with either "/", "./", or "../".
below is my vite file, how do i need to repair it. Hope you help!

`import commonjs from 'vite-plugin-commonjs';
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import { resolve } from 'path';

export default defineConfig({
  plugins: [react(), commonjs()],
  base: '/',
  optimizeDeps: {
    include: ['ckeditor5-custom-build/build/ckeditor'],
    esbuildOptions: {
      target: 'esnext'
    }
  },
  build: {
    rollupOptions: {
      input: {
        main: resolve(__dirname, 'index.html')
      },
      external: ['ckeditor5-custom-build']
    },
    commonjsOptions: {
      include: [/node_modules/, 'ckeditor5-custom-build/build/ckeditor']
    }
  },
  css: {
    preprocessorOptions: {
      less: {
        math: 'always',
        globalVars: {},
        javascriptEnabled: true
      },
      scss: {
        additionalData: `
        @import "./src/common/assets/scss/variables/_variables.scss";
        @import "./src/common/assets/scss/variables/_mixin.scss";`
      }
    }
  },
  resolve: {
    alias: {
      '@': resolve(__dirname, './src'),
      'app-admin': resolve(__dirname, './src/app-admin'),
      '@fonts': resolve(__dirname, 'src/common/assets/font')
    }
  },
  assetsInclude: ['**/*.svgx']
});
`

image
image
image

from ckeditor5.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.