Coder Social home page Coder Social logo

afsm's Introduction

Hi there 👋

Top Langs

afsm's People

Contributors

langhuihui avatar wbxl2000 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

szm8991 wbxl2000

afsm's Issues

打包报错,请问是否有 CommonJS 语法的包?

报错信息如下

error  in ./node_modules/afsm/index.js

Module parse failed: Unexpected token (7:12)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| // 中间过渡状态
| export class MiddleState {
>     oldState;
|     newState;
|     action;

 @ ./node_modules/trtc-sdk-v5/trtc.esm.js 9:6977-7023 9:7023-7069 9:7069-7115 15:1720-1722 15:6664-6666 15:6717-6719 15:6792-6794 15:14756-14758 15:21003-21005 15:21009-21011 15:28243-28245 15:31135-31137 15:31138-31140 15:31197-31199 15:31366-31368 15:31790-31792 15:58283-58329 15:59386-59388 15:59389-59391 15:59621-59623 15:59643-59645 27:27582-27610 27:61961-61963 27:67288-67334 29:38410-38412 29:38421-38423 29:38472-38474
 @ ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/trtcTest.vue?vue&type=script&lang=js&
 @ ./src/views/trtcTest.vue?vue&type=script&lang=js&
 @ ./src/views/trtcTest.vue
 @ ./src/router.js
 @ ./src/main.js
 @ multi ./src/main.js

查询后发现是 CommomJS 和 ESM 的语法区别, 目前用的是 vue 脚手架搭建的 CommomJS 语法工程, 如何使用

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.