Comments (5)
Please share your rollup config file if possible along with your dependencies, in order for me to be able to reproduce.
from autocomplete.js.
Np. Here is the rollup config, but I don't think anything here is unusual:
import html from 'rollup-plugin-html';
import typescript from 'rollup-plugin-typescript';
import resolve from 'rollup-plugin-node-resolve';
import globby from 'globby';
export default {
input: globby.sync('src/modules/*'),
plugins: [
resolve(),
typescript(),
html({
include: '**/*.html',
htmlMinifierOptions: {
collapseWhitespace: true,
collapseBooleanAttributes: true,
conservativeCollapse: true,
minifyJS: true,
minifyCSS: true,
removeComments: true,
}
}),
],
experimentalCodeSplitting: true,
output: {
dir: 'chrome-extension/dist/modules',
entryFileNames: '[name].mjs',
format: 'esm',
}
}
from autocomplete.js.
Hello @mikob, do you still have this Runtime Error
issue?
from autocomplete.js.
Not sure, I'm not using this anymore. I'll close!
from autocomplete.js.
For everyone who might stumble over this issue:
Using rollup and getting Error: 'default' is not exported by node_modules/@tarekraafat/autocomplete. js/dist/js/autoComplete.js
?
You should use the plugin commonjs with namedExports in your rollup config.
NPM Package for common js rollup plugin: rollup-plugin-commonjs
...
const plugins = [
commonjs({
namedExports: {
'@tarekraafat/autocomplete.js': ['AutoCompleteJS']
}
})
];
...
then you can use import AutoCompleteJS from '@tarekraafat/autocomplete.js'
un you js file.
instead of AutoCompleteJS you can use whatever name you want.
Hope this helps ;)
from autocomplete.js.
Related Issues (20)
- Implement Autocomplete for dynamically created DOM elements. HOT 1
- How can I disable search and make autoComplete just display the API result set HOT 5
- Force download on click on autocomplete suggestion HOT 3
- Pressing Esc clears the input, user loses data when *editing* as opposed to initial input
- Replace only a portion of the input HOT 1
- HTML input is not escaped HOT 2
- getting "e.feedback.results is undefined" when calling select()
- input field not empty & length == threshold hides results ????
- Adding an onClear event
- Case sensitive search
- Search Result as JSON List with label and value
- Page through sets of results when matches.length > maxResults HOT 1
- how to trigger a selection event with right mouse
- Allow selection of resultItems by class instead of tag
- Force the user to choose from results
- Highlight - click on 'Mark' markup
- Chrome Uncaught TypeError: Cannot read properties of undefined (reading '1')
- cannot fetch on key input
- Updated documentation on `selection` event HOT 1
- Is this abandoned? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from autocomplete.js.