vuejs / repl

Vue SFC REPL as a Vue 3 component
https://repl-vuejs.vercel.app
MIT License
930 stars 172 forks source link

error in vue-cli4 project currently no loaders are configured to process this file #76

Closed wangpf110 closed 1 year ago

wangpf110 commented 1 year ago
image

please help me , how to config repl loader?

sxzz commented 1 year ago

https://danw1ld.medium.com/optional-chaining-for-javascript-with-babel-7-and-webpack-4-2de8fd9dbdd5

wangpf110 commented 1 year ago

this is error in node_modules error in ./node_modules/@vue/repl/dist/vue-repl.js I add babel-loader to repl in vue.config.js configureWebpack: { module: { rules: [ { test: /repl[\\/].*\.js$/, loader: 'babel-loader', }, ], }, },

but another error
These dependencies were not found:

To install them, you can run: npm install --save atpl babel-core bracket-template coffee-script dot dustjs-linkedin eco ect haml-coffee hamlet hamljs handlebars hogan.js htmling jazz jqtpl just liquor marko mote mustache plates ractive react react-dom/server slm squirrelly teacup/lib/express templayed toffee twig twing underscore vash velocityjs walrus whiskers

minghua233 commented 1 year ago

I have the same problem

image
sxzz commented 1 year ago

We temporarily close this due to the lack of enough information. Please provide a minimal reproduction to reopen the issue. Thanks.

https://antfu.me/posts/why-reproductions-are-required